pep proposal : A date object for the standard library

Paul Svensson paul at svensson.org
Fri Dec 7 10:37:15 EST 2001


Robin Becker <robin at jessikat.fsnet.co.uk> writes:

>It seems odd to define dates as a duration in days from a fixed time and
>then define durations in a different scale ie seconds. Wouldn't it be
>better to adopt the integers to represent days and the fraction to
>represent fractions of a day which is what various proprietary date
>formats do already (although with different origin). Dates and durations
>could then have a common underlying representation.

Another possibility would be to represent the MJD interally as
(integer, float), holding the day and seconds since midnight.

	/Paul



More information about the Python-list mailing list