[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: antidote to date +%s not mentioned
From: |
Dan Jacobson |
Subject: |
Re: antidote to date +%s not mentioned |
Date: |
Sun, 15 Jun 2003 10:44:43 +0800 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
I know, on the info page that says
`%s'
seconds since the epoch, i.e., 1 January 1970 00:00:00 UTC (a GNU
please add a Info-follow-reference right there, to your
Jim> example showing how to do that:
Jim> * If you're sorting or graphing dated data, your raw date values may
Jim> be represented as seconds since the epoch. But few people can
and, at the top where he starts talking about the antidote to %s,
maybe put in this example:
$ date
Sun Jun 15 10:33:43 GMT-8 2003
$ date -d "1970-01-01 $(date +%s) seconds"
Sun Jun 15 02:33:43 GMT-8 2003
$ date -d "1970-01-01 UTC $(date +%s) seconds"
Sun Jun 15 10:33:43 GMT-8 2003
as I think it gets the point across more directly maybe, about local
time zones.
--
http://jidanni.org/ Taiwan(04)25854780