Time problem (again)

2008-03-27 Thread Fabio Durieux Lopes
Hi, I'm recreating a date-time based on a string and I have a problem when daylight savings time is set (I'm off by 1). So today I forced my computer into daylight savings time and debugged it again, but this time I noticed something strange. This is the documentation from python

Signal problem

2008-03-27 Thread Fabio Durieux Lopes
Hello again! Full of problems today! This one is about signal treatment. I made a daemon and set it to treat 2 signals: SIGALRM and SIGTERM. It goes like this: signal.signal(signal.SIGTERM, daemon.signalHandler) signal.signal(signal.SIGALRM, aFilter.alarmHandler) On daemon.py

Daylight savings time problem

2008-03-26 Thread Fabio Durieux Lopes
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.