[Zope3-checkins] CVS: Zope3/lib/python/datetime - doc.txt:1.3

Tim Peters tim.one@comcast.net
Sun, 22 Dec 2002 15:02:19 -0500


Update of /cvs-repository/Zope3/lib/python/datetime
In directory cvs.zope.org:/tmp/cvs-serv30355/lib/python/datetime

Modified Files:
	doc.txt 
Log Message:
Added docs about platform variations in strftime() behavior.


=== Zope3/lib/python/datetime/doc.txt 1.2 => 1.3 ===
--- Zope3/lib/python/datetime/doc.txt:1.2	Sat Dec 21 21:02:21 2002
+++ Zope3/lib/python/datetime/doc.txt	Sun Dec 22 15:02:19 2002
@@ -179,6 +179,19 @@
 - %Z:  If self.tzname() returns None, %Z is replaced by an empty string.
   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
 ===============