On Tuesday 12 July 2016, Sami Kerola wrote: > On 11 July 2016 at 21:23, J William Piggott <elseifthen@xxxxxxx> wrote: > > We use mktime(3) for portability. > > > > http://www.gnu.org/software/libc/manual/html_mono/libc.html#index-t > >imegm > > > > Portability note: mktime is essentially universally available. > > timegm is rather rare. For the most portable conversion from a UTC > > broken-down time to a simple time, set the TZ environment variable > > to UTC, call mktime, then set TZ back. > > I don't think hwclock(8) is portable. It has ioctl(2) calls, and > such. But there are non-gnu libc's for Linux. cu, Rudi -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html