summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtime.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-23 04:36:14 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-23 04:36:14 (GMT)
commitc32741d1abc170129d2be40853e91b14ea131d5d (patch)
tree8444fce30224f90ad0b6b796d3fc7941ad434747 /Doc/lib/libtime.tex
parentef14d73b7af06d94c7ddf4adf27d1ddeb84d651e (diff)
downloadcpython-c32741d1abc170129d2be40853e91b14ea131d5d.zip
cpython-c32741d1abc170129d2be40853e91b14ea131d5d.tar.gz
cpython-c32741d1abc170129d2be40853e91b14ea131d5d.tar.bz2
Added warnings about platform vagaries to the strptime() documentation.
This closes SourceForge bug #115146.
Diffstat (limited to 'Doc/lib/libtime.tex')
-rw-r--r--Doc/lib/libtime.tex10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/lib/libtime.tex b/Doc/lib/libtime.tex
index b343c95..28771e9 100644
--- a/Doc/lib/libtime.tex
+++ b/Doc/lib/libtime.tex
@@ -237,7 +237,15 @@ directives as those used by \function{strftime()}; it defaults to
returned by \function{ctime()}. The same platform caveats apply; see
the local \UNIX{} documentation for restrictions or additional
supported directives. If \var{string} cannot be parsed according to
-\var{format}, \exception{ValueError} is raised.
+\var{format}, \exception{ValueError} is raised. Values which are not
+provided as part of the input string are filled in with default
+values; the specific values are platform-dependent as the XPG standard
+does not provide sufficient information to constrain the result.
+
+\strong{Note:} This function relies entirely on the underlying
+platform's C library for the date parsing, and some of these libraries
+are buggy. There's nothing to be done about this short of a new,
+portable implementation of \cfunction{strptime()}.
Availability: Most modern \UNIX{} systems.
\end{funcdesc}