Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: mktime, how to handle dates before 01-01-1970 ? (http://www.velocityreviews.com/forums/t700915-re-mktime-how-to-handle-dates-before-01-01-1970-a.html)

Stef Mientki 10-08-2009 08:05 PM

Re: mktime, how to handle dates before 01-01-1970 ?
 
Stephen Hansen wrote:
> <snip>
> 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 ;-)

cheers,
Stef


All times are GMT. The time now is 04:32 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.