prevalence of "right" time zones without timegm()?

Henry B. Hotz hotz at jpl.nasa.gov
Tue Jul 12 17:07:15 EDT 2011


On Jul 5, 2011, at 4:20 PM, krbdev-request at mit.edu wrote:

> Date: Tue, 05 Jul 2011 15:18:59 -0400
> From: Tom Yu <tlyu at MIT.EDU>
> Subject: prevalence of "right" time zones without timegm()?
> To: krbdev at MIT.EDU
> Message-ID: <ldv39ikpmcc.fsf at cathode-dark-space.mit.edu>
> Content-Type: text/plain; charset=us-ascii
> 
> Does anyone configure a "right" (leap-second-aware) time zone on a
> system that lacks timegm()?  (timegm() is the non-standard inverse
> function of gmtime().)  I'm trying to address the problem where
> conversion to formatted ASN.1 GeneralizedTime is sometimes
> non-invertible, causing failures that are difficult to debug.
> 
> I propose that we implement krb5int_gmt_mktime() using timegm() on
> systems that have it, using our existing custom implementation if
> timegm() doesn't exist.

How does it compare to mktime()/tzset() with the right TZ?

Or is this what you're putting in your custom krb5int_gmt_mktime()?

------------------------------------------------------
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz at jpl.nasa.gov, or hbhotz at oxy.edu






More information about the krbdev mailing list