bin/119862: Incorrect mktime() work

Valentin Nechayev netch at lucky.net
Mon Jan 21 17:50:02 UTC 2008


The following reply was made to PR bin/119862; it has been noted by GNATS.

From: Valentin Nechayev <netch at lucky.net>
To: "Dmitrij N.Babin" <was.drum at gmail.com>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: bin/119862: Incorrect mktime() work
Date: Mon, 21 Jan 2008 19:22:24 +0200

  Mon, Jan 21, 2008 at 15:26:43, was.drum wrote about "bin/119862: Incorrect mktime() work": 
 
 >         tf.tm_mon=2;                                 /* February */
 
 Pilot error: tm_mon=2 means March, not February.
 Please read manuals carefully:)) (Yes, this API is confusing)
 
 P.S.
 
 const char *month_names[] = { "Nullember", "January", "February", "March",... }
 
 
 -netch-


More information about the freebsd-bugs mailing list