Article View: comp.std.c
Article #4192Re: mktime murk
From: Paul Eggert
Date: Fri, 06 Oct 1995 06:25
Date: Fri, 06 Oct 1995 06:25
14 lines
1263 bytes
1263 bytes
gwc@root.co.uk (Geoff Clare) writes: > By keeping tm_isdst set to 1 you are specifying that mktime() should > treat the input time as if it was DST, even though DST is not in effect > at that time. The behavior that you describe conforms to the standard, but as far as I can tell other behaviors conform as well. All the standard says (in a footnote) is that mktime must ``presume initially that Daylight Savings Time ... is ... in effect for the specified time''. The standard does not say what mktime does if this presumption is impossible to satisfy. I don't see where the standard requires that a US/Pacific mktime must subtract an hour from tm_hour if the presumption is false, particularly when such behavior can lead to paradoxical results.
Technical Details
Message-ID:
<452i5b$8s4@light.twinsun.com>Path:
arc1-ca.pugleaf.net!delphi.cs.ucla.edu!twinsun!not-for-mailReferences:
<44mio5$63n@mark.ucdavis.edu> <812657476snz@genesis.demon.co.uk> <44qa5g$qj8@tattoo.twinsun.com> <44u7um$elm@info1.sdrc.com> <44uosd$1nl@light.twinsun.com> <DFzFA4.Io0@root.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!delphi.cs.ucla.edu!twinsun!not-for-mail From: eggert@twinsun.com (Paul Eggert) Newsgroups: comp.std.c Subject: Re: mktime murk Date: 5 Oct 1995 23:25:47 -0700 Organization: Twin Sun Inc, El Segundo, CA, USA Message-ID: <452i5b$8s4@light.twinsun.com> References: <44mio5$63n@mark.ucdavis.edu> <812657476snz@genesis.demon.co.uk> <44qa5g$qj8@tattoo.twinsun.com> <44u7um$elm@info1.sdrc.com> <44uosd$1nl@light.twinsun.com> <DFzFA4.Io0@root.co.uk> NNTP-Posting-Host: light.twinsun.com