At 2004-10-19T20:45:59+1300, Roger Searle wrote:
> this has been bugging me all afternoon.  it would appear we're both 
> partly wrong.

Given a time in seconds since Epoch, you'd generally want to know what
time it was in your local time zone.  It is fairly clear from my post,
or given basic knowledge of what date(1) does, that the times returned
will be in terms of the local time zone.  In fact, it even says so right
in the resulting output.

> therefore after making the appropriate adjustments to both methods a
> reconciliation occurs and the correct time and date is yesterday
> morning at 6:09. 

It's correct if you want the result in UTC.

> SuSEbox:/home/roger # date -d '1970-01-01 UTC 60 seconds'
> Thu Jan  1 12:01:00 NZST 1970

$ date -u -d '1970-01-01 UTC 60 seconds'
Thu Jan  1 00:01:00 UTC 1970


Adjusted for NZST[0] (+12), that would be:
Thu Jan  1 12:01:00 NZST 1970

> makes it the afternoon! obviously it should be Jan 1 00:01:00

You are confused.

[0]  What we currently known as daylight savings was not in effect until
     late 1974.

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to