Re: extending from_epoch to years 2038

2006-01-13 Thread Heiko Klein
Thank you, this is exactly what I've been looking for. But after putting it into my programs, I realized a hard performance fallback. My program handles usually a year of hourly data, comparing those to other times etc. A benchmark (simply` creating dates) gave the answer, DateTime seems to

extending from_epoch to years 2038

2006-01-12 Thread Heiko Klein
The DateTime module allows handling of a large range of dates, much larger than the standard unix epoch (from ~1901 to ~2038). This is really nice. But when calling the DateTime-from_epoch(epoch = 2**31) gives not 2038 as I hoped for, but 1901 due to an internal call to gmtime. Since I'm

Re: extending from_epoch to years 2038

2006-01-12 Thread Eugene van der Pijll
Heiko Klein schreef: The DateTime module allows handling of a large range of dates, much larger than the standard unix epoch (from ~1901 to ~2038). This is really nice. But when calling the DateTime-from_epoch(epoch = 2**31) gives not 2038 as I hoped for, but 1901 due to an internal call to