[Python-checkins] python/nondist/sandbox/datetime doc.txt,1.64,1.65
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Sun, 22 Dec 2002 11:52:47 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv8797
Modified Files:
doc.txt
Log Message:
Added docs about platform variations in strftime() behavior.
Index: doc.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/doc.txt,v
retrieving revision 1.64
retrieving revision 1.65
diff -C2 -d -r1.64 -r1.65
*** doc.txt 22 Dec 2002 01:43:13 -0000 1.64
--- doc.txt 22 Dec 2002 19:52:45 -0000 1.65
***************
*** 180,183 ****
--- 180,196 ----
Else %Z is replaced by the returned value, which must be a string.
+ The full set of format codes supported varies across platforms,
+ because Python calls the platform C library's strftime() function,
+ and platform variations are common. The documentation for Python's
+ time module lists the format codes that the C standard (1989 version)
+ requires, and those will work on all platforms with a standard C
+ implementation. Note that the 1999 version of the C standard added
+ additional format codes.
+
+ The exact range of years for which strftime() works also varies
+ across platforms. For example, Microsoft's implementation of
+ strftime() refuses to accept years before 1900, and Python inherits
+ this limitation.
+
class timedelta