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