The last date example in the manual gives a way to convert seconds since
the epoch to a readable date.  But that does not work for dates during
which DST is in effect in the local timezone.  For example, in the
Europe/Berlin timezone:

$ date --date='2000-08-01 UTC' +%s
965088000
$ date -d '1970-01-01 965088000 sec' +"%Y-%m-%d %T %z"
2000-08-01 01:00:00 +0200
$ date -d '1970-01-01 UTC 965088000 sec' +"%Y-%m-%d %T %z"
2000-08-01 03:00:00 +0200

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
[EMAIL PROTECTED]
SuSE GmbH, Schanz�ckerstr. 10, D-90443 N�rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to