[Python-checkins] peps: PEP 495: Added 'Aware datetime instances' subsection.
alexander.belopolsky
python-checkins at python.org
Mon Aug 31 04:01:45 CEST 2015
https://hg.python.org/peps/rev/987908def359
changeset: 6020:987908def359
user: Alexander Belopolsky <alexander.belopolsky at gmail.com>
date: Sun Aug 30 22:01:40 2015 -0400
summary:
PEP 495: Added 'Aware datetime instances' subsection.
files:
pep-0495.txt | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/pep-0495.txt b/pep-0495.txt
--- a/pep-0495.txt
+++ b/pep-0495.txt
@@ -263,6 +263,21 @@
1425796200.0
+Aware datetime instances
+........................
+
+Users of pre-PEP implementations of ``tzinfo`` will not see any
+changes in the behavior of their aware datetime instances. Two such
+instances that differ only by the value of the ``fold`` attribute will
+not be distinguishable by any means other than an explicit access to
+the ``fold`` value.
+
+On the other hand, if object's ``tzinfo`` is set to a fold-aware
+implementation, then the value of ``fold`` will affect the result of
+several methods but only if the corresponding time is in a fold or in
+a gap: ``utcoffset()``, ``dst()``, ``tzname()``, and ``timetuple()``.
+
+
Combining and splitting date and time
.....................................
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list