This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/4033] mktime bug in Europe/Lisbon timezone


------- Additional Comments From sergio at sergiomb dot no-ip dot org  2007-02-17 16:44 -------
(In reply to comment #3)
> There is nothing wrong here.  This is the daylight saving time switch.  The
> mktime is intelligent in that it gives an answer based on the context which is
> more correct than always returning the old or new time.

what context ? 
>>> import time
>>> time.mktime((1976,9,26,0,0,0,0,0,0))
212544000.0
>>> time.mktime((1976,9,25,0,0,0,0,0,0))
212454000.0
>>> time.mktime((1976,9,26,0,0,0,0,0,0))
212540400.0

I just want to know how I convert strtotime and after timetostr and get the same
initial string, if it a valid string date. I do this to validate the strings.

I verified that 01-jan-1970 after strtotime and timetostring give me 31-dez-1969
23.00 
which I think this is not correct !  

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4033

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]