Questions about mktime()
Stephen Clamage
steve at taumet.com
Fri Feb 1 04:20:40 AEST 1991
darcy at 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 at taumet.com
More information about the Comp.std.c
mailing list