This is the mail archive of the glibc-bugs@sources.redhat.com 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/812] mktime does not return -1


------- Additional Comments From uttamp at us dot ibm dot com  2005-04-04 21:31 -------
(In reply to comment #2)
> A negative value as the number of seconds since the Epoch is perfectly valid.  

Yes, but the value returned by mktime (between -2147483648 and 2147483647) is
the maximum number of seconds can be represent using time_t where tm_year ranges
between (1-138) i.e. tm_year > 0. Can't we just add check to see if the input
tm_year is valid?



-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=812

------- 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]