[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Time confusion?
From: |
Paul Kienzle |
Subject: |
Re: Time confusion? |
Date: |
Wed, 10 Mar 2004 19:09:25 -0500 |
On Mar 10, 2004, at 11:45 AM, Vic Norton wrote:
Start with the date 23-Feb-04. That was a Monday. Do strptime to get a
TM_STRUCT and then do strftime to that. This changes the day. Now
23-Feb-04 is Sunday.
Something is very strange here. One date just can't be on two
different days!
It can if it is in a different time zone. E.g., start at 12:00AM on
Monday, no time
zone specified. Set zone to EST. If your time zone is CST, 12:00AM
on Monday
in EST is really 11:00PM on Monday in CST.
print out the full date and time, including time zone, on tm_struct1
and tm_struct2.
strftime ("%r (%Z) %A %e %B %Y",tm)
Paul Kienzle
address@hidden
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
Time confusion?, John W. Eaton, 2004/03/11