D
Dom Bannon
I need to represent dates going back to, potentially, ~1900 (on
Windows and Linux). The obvious way to do this is to use a time_t, but
this seems to have a flaw in that various library routines (mktime and
time, at least) use (time_t)-1 as an error return.
(time_t)-1 is a valid representation of the last second in 1969, so
it's only a matter of time before I need this as a valid date.
I suppose I'm just going to have to ignore this, and work around
problems as they arise. Thoughts? A better way to do this? If you've
got a database with dates in it, do you use time_t, or something else?
Thanks -
Dom
Windows and Linux). The obvious way to do this is to use a time_t, but
this seems to have a flaw in that various library routines (mktime and
time, at least) use (time_t)-1 as an error return.
(time_t)-1 is a valid representation of the last second in 1969, so
it's only a matter of time before I need this as a valid date.
I suppose I'm just going to have to ignore this, and work around
problems as they arise. Thoughts? A better way to do this? If you've
got a database with dates in it, do you use time_t, or something else?
Thanks -
Dom