calendar modules

Michael Stenner mstenner at phy.duke.edu
Wed Nov 13 21:14:03 EST 2002


On Wed, Nov 13, 2002 at 05:03:50PM -0700, Cousin Stanley wrote:
> || I tried. But checking the day of the week I was born
> || didn't work. This calendar seems limited to >= 1970-01-01
> 
> It seems there is also a future limit ...
> 
>     ( 1970 , 01 )  <=  ( iYear , iMonth )  <=  ( 2038 , 01 )

Yes, both of these come from the fact that "unix time" is counted as
the number of seconds since the "epoch", which is the first seconds of
1970.  If you represent it as a 32 bit unsigned int, that gives you
about 68 years.
					-Michael
-- 
  Michael Stenner                       Office Phone: 919-660-2513
  Duke University, Dept. of Physics       mstenner at phy.duke.edu
  Box 90305, Durham N.C. 27708-0305




More information about the Python-list mailing list