🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2351

Re: Questions about mktime()

#2351
From: D'Arcy J.M. Cain
Date: Wed, 30 Jan 1991 12:19
20 lines
1265 bytes
I previously asked what mktime() was supposed to do.  Thanks for all the
responses.  However, changing the code to incorporate the suggestions
has led to a few more questions.

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?
Armstrong Day if the month is Archemedies?  :-)

I have to normalize day and month, but how about hours minutes and seconds?
It seems reasonable to do that as well.  I'm thinking of doing it anyway as
it wouldn't break anything if normal times were sent.  If I do this I guess
I should normalize times before day and month right?

As soon as I have something finished I will post the code.

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
West Hill, Ontario, Canada         |   like no government!
+1 416 281 6094                    |
Technical Details
Message-ID: <1991Jan30.121917.12293@druid.uucp>
Path: arc1-ca.pugleaf.net!utzoo!telly!problem!druid!darcy

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!utzoo!telly!problem!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Re: Questions about mktime()
Message-ID: <1991Jan30.121917.12293@druid.uucp>
>from: darcy@druid.uucp (D'Arcy J.M. Cain)
Organization: D'Arcy Cain Consulting, West Hill, Ontario
Date: Wed, 30 Jan 91 12:19:17 GMT