[Datetime-SIG] Calendar vs timespan calculations...

Alexander Belopolsky alexander.belopolsky at gmail.com
Mon Aug 3 19:54:31 CEST 2015

On Mon, Aug 3, 2015 at 12:49 PM, Chris Barker <chris.barker at noaa.gov> wrote:
> if we're going to print out the datetime in iso 8601 format, or whatever,
> shouldn't we do it offical UTC way???

Maybe we should, but we don't.  Try the following on a Linux system:

$ TZ=right/UTC python
>>> datetime.datetime.utcfromtimestamp(1341100823).isoformat()
>>> datetime.datetime.utcfromtimestamp(1341100824).isoformat()
>>> datetime.datetime.utcfromtimestamp(1341100825).isoformat()

More information about the Datetime-SIG mailing list