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 05:14 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57