🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2353

Re: Questions about mktime()

#2353
From: Stephen Clamage
Date: Thu, 31 Jan 1991 17:20
12 lines
860 bytes
darcy@druid.uucp (D'Arcy J.M. Cain) writes:

>I understand that tm_mday of -1 means the last day of the previous month.
>Obvously 1 would be the first of the current month so where does 0 lie?

No, the valid range of tm_mday is 1 to 31.  Thus in a call to mktime,
a value of 0 must refer to the day before the first of the given month --
that is, the last day of the previous month.  Then -1 is the next-to-last
day of the previous month.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Technical Details
Message-ID: <577@taumet.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!taumet!steve
References: <1991Jan30.121917.12293@druid.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!taumet!steve
From: steve@taumet.com (Stephen Clamage)
Newsgroups: comp.std.c
Subject: Re: Questions about mktime()
Message-ID: <577@taumet.com>
Date: 31 Jan 91 17:20:40 GMT
References: <1991Jan30.121917.12293@druid.uucp>
Organization: Taumetric Corporation, San Diego
Lines: 12