Path: 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 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