the Gravity of Python 2

Chris Angelico rosuav at gmail.com
Thu Jan 9 01:34:33 EST 2014


On Thu, Jan 9, 2014 at 4:31 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/08/2014 08:34 PM, Chris Angelico wrote:
>>
>> This is simple:
>>
>>>>> time.time()
>>
>> 1389242048.669482
>
>
> I agree, and I'm sure Roy also agrees, that that is simple.  However, that
> is *not* a timezone-aware datetime.  The point of having the datetime module
> is so we all don't have to reroll our own from scratch, and yet this
> particular (and increasingly important) operation wasn't intuitive nor easy.

What exactly does datetime offer you that a timestamp doesn't? Can we
get a quick run-down, please?

ChrisA



More information about the Python-list mailing list