[6488] in Kerberos

home help back first fref pref prev next nref lref last post

Re: More gmt_mktime trouble: breaks on systems with leap seconds

daemon@ATHENA.MIT.EDU (Jonathan Kamens)
Wed Jan 17 09:40:24 1996

To: kerberos@MIT.EDU
Date: 17 Jan 1996 12:59:17 GMT
From: jik@annex-1-slip-jik.cam.ov.com (Jonathan Kamens)

So, I went to update my fix to use time2posix() instead of the hack I put in,
and I discovered that at least under Linux, the time2posix() and posix2time()
functions aren't included in the standard C library -- they're included in
"-lz", which isn't installed by default, at least not in Slackware 2.3.

Are there any other UNIX platforms that support leap seconds but don't have
time2posix() and posix2time() in the C library or in a library that's
installed by default?

What I conclude from this is that as kludgy as my fix was, it works, and it's
more portable than time2posix()....

home help back first fref pref prev next nref lref last post