Am I doing this wrong? Why does this seem so clumsy (time, datetime vs. DateTime)

Ben Morrow ben at morrow.me.uk
Sun Sep 20 02:02:35 EDT 2009


[This is not a Perl question. F'ups set to c.l.python.]

Quoth Schif Schaf <schifschaf at gmail.com>:
> The other day I needed to convert a date like "August 2009" into a
> "seconds-since-epoch" value (this would be for the first day of that
> month, at the first second of that day).

Note that this is not unique: you need to at least specify a time zone.

Ben




More information about the Python-list mailing list