summaryrefslogtreecommitdiffstats
path: root/Tools/freeze
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-25 14:51:12 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-25 14:51:12 (GMT)
commitcfbaecc5468030bb3f17dbeb9e7afa1bf3363920 (patch)
treea99b4d90dd4f94f899c985aaf250b0cd238bf60f /Tools/freeze
parentf5a80a4a8806fc293ac8de95ea6d304347af784e (diff)
downloadcpython-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