bug-coreutils
[Top][All Lists]
Advanced

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

Re: Bug in function date


From: Philip Rowlands
Subject: Re: Bug in function date
Date: Fri, 15 Apr 2005 18:02:42 +0100 (BST)

On Fri, 15 Apr 2005, Leonardo Marques da Cruz wrote:

>But when I configure february, 19th  of  2005, it returns the wrong date:
>
>
>comand:     date -d " 2005-02-19 00:00:00  24 hour " "+%y%m%d%H"
>returns:       05021923

I can't reproduce this:
$ date -d " 2005-02-19 00:00:00  24 hour " "+%y%m%d%H"
05022000

Perhaps something unexpected is being triggered by your configured
timezone? Running the following commands on your system may shed some
light:

$ date --utc -d " 2005-02-19 00:00:00  24 hour " "+%y%m%d%H"
05022000

$ date -d " 2005-02-19 00:00:00  24 hour " "+%y%m%d%H %z %Z"
05022000 +0000 GMT


Cheers,
Phil




reply via email to

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