[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: antidote to date +%s not mentioned

From: Jim Meyering
Subject: Re: antidote to date +%s not mentioned
Date: Fri, 20 Jun 2003 09:36:12 +0200

Dan Jacobson <address@hidden> wrote:
> 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.

Thanks for all your good feedback.
I'm keeping it all for a rainy day (it never seems to rain here)
or until someone sends in a patch implementing the changes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]