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

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

Re: problem with mktime


From: Paul Eggert
Subject: Re: problem with mktime
Date: Mon, 21 Jun 2010 15:49:38 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

On 06/21/2010 01:40 PM, Petko Bogdanov wrote:

> gawk 'BEGIN{print mktime("2008 03 09 02 37 43")}'
> 
> outputs -1
> although the date format specification is correct

The _format_ is correct, but the _timestamp_ is not.  No such time exists in 
North America,
due to the daylight-saving time switchover.  Gawk is within its rights to reject
invalid time stamps like that.



reply via email to

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