diff options
author | Guido van Rossum <guido@python.org> | 1992-10-18 17:09:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-10-18 17:09:59 (GMT) |
commit | 2db91358def94cf8081f27b736988320d14eba39 (patch) | |
tree | f73562d6cfd16adf8723bbe702be55d13e2122f5 /Lib/calendar.py | |
parent | 0cb8e8cfc09dd0919882da968c3e95bf070e257d (diff) | |
download | cpython-2db91358def94cf8081f27b736988320d14eba39.zip cpython-2db91358def94cf8081f27b736988320d14eba39.tar.gz cpython-2db91358def94cf8081f27b736988320d14eba39.tar.bz2 |
Misc changes and new modules. whrandom is "objectified". SOCKET.py
is moved to the sgi subdirectory.
Diffstat (limited to 'Lib/calendar.py')
-rw-r--r-- | Lib/calendar.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/calendar.py b/Lib/calendar.py index 4e02e0e..62fb27f 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -11,7 +11,7 @@ # - Monday is the first day of the week (numbered 0) # These are really parameters of the 'time' module: -epoch = 1970 # Time began on January 1 of this year (00:00:00 UCT) +epoch = 1970 # Time began on January 1 of this year (00:00:00 UTC) day_0 = 3 # The epoch begins on a Thursday (Monday = 0) # Return 1 for leap years, 0 for non-leap years @@ -58,7 +58,7 @@ def leapdays(y1, y2): return (y2+3)/4 - (y1+3)/4 # Inverse of gmtime(): -# Turn UCT calendar time (less yday, wday) into seconds since epoch +# Turn UTC calendar time (less yday, wday) into seconds since epoch def mktime(year, month, day, hours, mins, secs): days = day - 1 for m in range(January, month): days = days + mdays[m] @@ -96,8 +96,8 @@ def asctime(year, month, day, hours, mins, secs, yday, wday): return s + ' ' + `year` # Localization: Minutes West from Greenwich -# timezone = -2*60 # Middle-European time with DST on -timezone = 5*60 # EST (sigh -- THINK time() doesn't return UCT) +timezone = -2*60 # Middle-European time with DST on +# timezone = 5*60 # EST (sigh -- THINK time() doesn't return UTC) # Local time ignores DST issues for now -- adjust 'timezone' to fake it def localtime(secs): |