bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mktime() and invalid dates


From: Hermann Peifer
Subject: mktime() and invalid dates
Date: Fri, 23 Apr 2010 14:29:53 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

Hi Arnold,

mktime() doesn't seem to potest in case of invalid dates, e.g.

gawk 'BEGIN{ print mktime("2010 03 32 25 61 61")
             print mktime("2010 04 02 02 02 01")
}'
1270166521
1270166521


I am not sure if this is a bug or rather a feature.

Hermann




reply via email to

[Prev in Thread] Current Thread [Next in Thread]