mktime, how to handle dates before 01-01-1970 ?
stef.mientki at gmail.com
Thu Oct 8 22:05:40 CEST 2009
Stephen Hansen wrote:
> Personally, while /users/ may write a date in a lazy way like
> "01-01-53", I'd never store that and would avoid having them enter
> them directly. At the UI level I'd validate and normalize it to a
> standard format before storing it.
yes I agree, but the data is coming from all kind of programs,
some more than 10 years old.
> E.g. instead of users entering someone's birthday into a control, I'd
> use a calendar control, and store it with (in wx terms)
> date.FormatISODate(). Or use date.toString(ISODate) in QT terms (ish).
I don't know your age,
but with my age it takes hours to look up my birthday on a windows
calender control ;-)
More information about the Python-list