Hi,
I'm trying to execute some operations based on a file's time. The
file's time is actually the file's name (e.g. FILE1_20080326170558).
So I do this:
fileTimeInSecs = time.mktime(time.strptime(timeString,
%Y%m%d%H%M))
timeString contains the date part of the file's name.
On Wed, 26 Mar 2008 19:37:16 -
Fabio Durieux Lopes [EMAIL PROTECTED] wrote:
I'm trying to execute some operations based on a file's time. The
file's time is actually the file's name (e.g. FILE1_20080326170558).
So I do this:
fileTimeInSecs = time.mktime(time.strptime(timeString,
: Re: Daylight savings time problem
On Wed, 26 Mar 2008 19:37:16 -
Fabio Durieux Lopes [EMAIL PROTECTED] wrote:
I'm trying to execute some operations based on a file's time. The
file's time is actually the file's name (e.g. FILE1_20080326170558).
So I do this:
fileTimeInSecs
On 2008-03-26, Salsa [EMAIL PROTECTED] wrote:
I'm sorry, but could you be more specific? How exactly should I use UTC?
In my experience, using local time for timestamps is always a
big mistake, so I presume he meant don't use local time in the
file names -- put the UTC date/time in the
On Wed, 26 Mar 2008 13:23:23 -0700 (PDT)
Salsa [EMAIL PROTECTED] wrote:
I'm sorry, but could you be more specific? How exactly should I use UTC?
Pardon me. I misread. I thought that you were creating the files. I
see that you are reading files created by someone else.
Still, would
On Wed, 26 Mar 2008 20:45:47 -
Grant Edwards [EMAIL PROTECTED] wrote:
On 2008-03-26, Salsa [EMAIL PROTECTED] wrote:
I'm sorry, but could you be more specific? How exactly should I use UTC?
In my experience, using local time for timestamps is always a
big mistake, so I presume he
Yeah, I guess it would, but it doesn't feel like
the right way to do it. Isn't there a way I can set
tm_isdst to -1? Or at least slice the time_struct
and then add another element to its end when passing
it to mktime?
Thanks for all your help!
--- D'Arcy J.M. Cain [EMAIL PROTECTED] wrote: