🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4199

Re: mktime murk

#4199
From: Larry Jones
Date: Sat, 07 Oct 1995 15:51
18 lines
1381 bytes
In article <452i5b$8s4@light.twinsun.com>, eggert@twinsun.com (Paul Eggert) writes:
> 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.

What does it mean to say that a presumption is impossible to satisfy? 
It seems to me that the intent of the Standard is completely clear.
mktime is to presume that DST is in effect for the specified time.  If,
after normalizing the values, it discovers that DST is not in effect at
that time (i.e., the presumption was false), then it must further
adjust the time by the appropriate DST offset and clear the flag.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
larry.jones@sdrc.com
Physical education is what you learn from having your face in
someone's armpit right before lunch. -- Calvin
Technical Details
Message-ID: <4567mh$3fb@info1.sdrc.com>
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
References: <44mio5$63n@mark.ucdavis.edu> <812657476snz@genesis.demon.co.uk> <452i5b$8s4@light.twinsun.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sdrc.com!thor!scjones
From: scjones@thor.sdrc.com (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: mktime murk
Date: 7 Oct 1995 15:51:45 GMT
Organization: SDRC Engineering Services
Distribution: world
Message-ID: <4567mh$3fb@info1.sdrc.com>
References: <44mio5$63n@mark.ucdavis.edu> <812657476snz@genesis.demon.co.uk> <452i5b$8s4@light.twinsun.com>
NNTP-Posting-Host: thor.sdrc.com