|
From: | Philip Rowlands |
Subject: | Re: Bug report for "date" |
Date: | Wed, 29 Jul 2009 00:39:50 +0100 (BST) |
User-agent: | Alpine 1.10 (DEB 962 2008-03-14) |
On Tue, 28 Jul 2009, Paul Grinberg wrote:
Gives me correct date: [ctpsmg11-dcdhealth@/opt/app/dcdhealth] # TZ=EDT+150 date Wed Jul 22 12:27:15 EDT 2009 Gives me incorrect date: [ctpsmg11-dcdhealth@/opt/app/dcdhealth] # TZ=EDT+172 date Tue Jul 28 18:27:09 GMT 2009 Basically I cannot go back more than 6 days...
According to the POSIX/glibc definition of TZ: http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap08.html http://www.gnu.org/s/libc/manual/html_node/TZ-Variable.htmlthe hour offset must be between 0 and 24. In other words, the examples above are undefined by the standards. Why are you trying to use TZ to concoct multi-day offsets?
Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |