date (GNU sh-utils) 2.0 gives incorrect result
Michael Wang <[email protected]> Fri, 16 Aug 2002 00:02:36 -0400
| Newsgroups | gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
date (GNU sh-utils) 2.0 gives incorrect result. date (GNU sh-utils) 1.16 and perl are ok. Please advise how should I fix date (GNU sh-utils) 2.0. Thanks. (1) [julie:/opt/home/mwang/Perl]/usr/local/bin/date --version date (GNU sh-utils) 2.0 Written by David MacKenzie. Copyright (C) 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [julie:/opt/home/mwang/Perl]/usr/local/bin/date -d '1970-01-01 00:00:1028233379 GMT' Thu Aug 1 17:22:59 EDT 2002 (2) [oracle@BCCS1:oracle] /usr/local/bin/date --version date (GNU sh-utils) 1.16 [oracle@BCCS1:oracle] /usr/local/bin/date -d '1970-01-01 00:00:1028233379 GMT' Thu Aug 1 16:22:59 EDT 2002 (3) [julie:/opt/home/mwang/Perl]perl -e 'print scalar(localtime(1028233379))."\n"'; Thu Aug 1 16:22:59 2002 -- Michael Wang http://www.unixlabplus.com/