datetime question

Albert Hopkins marduk at letterboxes.org
Sat Oct 31 05:15:16 EDT 2009


On Sat, 2009-10-31 at 10:08 +1100, Ben Finney wrote:
> The ‘datetime’ module focusses on individual date+time values (and the
> periods between them, with the ‘timedelta’ type).
> 
> For querying the properties of the calendar, use the ‘calendar’
> module.
> 
> Yes, it would be nice if the ‘time’, ‘datetime’, and ‘calendar’
> modules
> were all much more unified and consumed a common set of primitive
> date+time types. It's a wart, and fixing it would (unfortunately)
> probably require backward-incompatible API changes.
> 

But, supposedly, that's why we had Python3.




More information about the Python-list mailing list