diff options
author | Guido van Rossum <guido@python.org> | 1998-08-25 14:51:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-25 14:51:12 (GMT) |
commit | cfbaecc5468030bb3f17dbeb9e7afa1bf3363920 (patch) | |
tree | a99b4d90dd4f94f899c985aaf250b0cd238bf60f /Tools/freeze | |
parent | f5a80a4a8806fc293ac8de95ea6d304347af784e (diff) | |
download | cpython-cfbaecc5468030bb3f17dbeb9e7afa1bf3363920.zip cpython-cfbaecc5468030bb3f17dbeb9e7afa1bf3363920.tar.gz cpython-cfbaecc5468030bb3f17dbeb9e7afa1bf3363920.tar.bz2 |
Y2K fix affecting asctime(), mktime(), strftime().
2-digit years are now converted using rules that are (according to
Fredrik Lundh) recommended by POSIX or X/Open: 0-68 mean 2000-2068,
69-99 mean 1969-1999.
2-digit years are now only accepted if time.accept2dyear is set to a
nonzero integer; if it is zero or not an integer or absent, only year
values >= 1900 are accepted. Year values 100-1899 and negative year
values are never accepted.
The initial value of time.accept2dyear depends on the environment
variable PYTHONY2K: if PYTHONY2K is set and non-empty,
time.accept2dyear is initialized to 0; if PYTHONY2K is empty or not
set, time.accept2dyear is initialized to 0.
Diffstat (limited to 'Tools/freeze')
0 files changed, 0 insertions, 0 deletions