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
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
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