🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2356

Re: Questions about mktime()

#2356
From: Karl Heuer
Date: Sat, 02 Feb 1991 18:57
13 lines
1215 bytes
>[So, what should mktime() return in the neighborhood of DST changeover,
>when the argument represents a clock time which is (depending on season)
>impossible or ambiguous?]

Personally, I think we should've handled DST in the same way as leap days and
leap seconds: just add another hour to the legal range of the variable.  Then
Spring Changeover Day would end at 23:00, and Fall Changeover Day would end at
25:00.

It is left as an exercise to the reader to determine how 24:30 is denoted in
those backward countries that use 12-hour clocks, such as the United States.

Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
Technical Details
Message-ID: <1991Feb02.185704.1209@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!spdcc!ima!dirtydog!karl
References: <1991Jan18.225155.7310@druid.uucp> <1991Jan20.205039.7056@sq.sq.com> <2582@root44.co.uk> <14952@smoke.brl.mil> <1991Jan28.224605.12960@sq.sq.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!spdcc!ima!dirtydog!karl
From: karl@ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: Questions about mktime()
Message-ID: <1991Feb02.185704.1209@dirtydog.ima.isc.com>
Date: 2 Feb 91 18:57:04 GMT
References: <1991Jan18.225155.7310@druid.uucp> <1991Jan20.205039.7056@sq.sq.com> <2582@root44.co.uk> <14952@smoke.brl.mil> <1991Jan28.224605.12960@sq.sq.com>
Sender: news@dirtydog.ima.isc.com (NEWS ADMIN)
Organization: Interactive Systems
Lines: 13