[Python-checkins] r87915 - python/branches/py3k/Doc/library/datetime.rst

alexander.belopolsky python-checkins at python.org
Tue Jan 11 00:31:51 CET 2011


Author: alexander.belopolsky
Date: Tue Jan 11 00:31:51 2011
New Revision: 87915
Log:
Improved footnote for the %Y directive slightly.
Modified:
 python/branches/py3k/Doc/library/datetime.rst
Modified: python/branches/py3k/Doc/library/datetime.rst
==============================================================================
--- python/branches/py3k/Doc/library/datetime.rst	(original)
+++ python/branches/py3k/Doc/library/datetime.rst	Tue Jan 11 00:31:51 2011
@@ -1770,11 +1770,11 @@
 
 (5)
 For technical reasons, :meth:`strftime` method does not support
- dates with year < 1000: ``t.strftime(format)`` will raise a
- :exc:`ValueError` even if ``format`` does not contain ``%Y``
- directive. The :meth:`strptime` method can parse years in the full
- [1, 9999] range, but years < 1000 must be zero-filled to 4-digit
- width.
+ dates before year 1000: ``t.strftime(format)`` will raise a
+ :exc:`ValueError` when ``t.year < 1000`` even if ``format`` does
+ not contain ``%Y`` directive. The :meth:`strptime` method can
+ parse years in the full [1, 9999] range, but years < 1000 must be
+ zero-filled to 4-digit width.
 
 .. versionchanged:: 3.2
 In previous versions, :meth:`strftime` method was restricted to


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /