summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-14 14:15:50 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-06-14 14:15:50 (GMT)
commit4e749a1113acb4affed27afda07e17d96945290b (patch)
tree77f5847390e81b47a0df49d4899d759892a437cb /Misc
parent510b6227a764e6de23e48708cd3e1293ec2521be (diff)
downloadcpython-4e749a1113acb4affed27afda07e17d96945290b.zip
cpython-4e749a1113acb4affed27afda07e17d96945290b.tar.gz
cpython-4e749a1113acb4affed27afda07e17d96945290b.tar.bz2
Issue #5094: The ``datetime`` module now has a simple concrete class
implementing ``datetime.tzinfo`` interface.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS8
2 files changed, 9 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 013d267..7b1e8cb 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -406,6 +406,7 @@ Bob Kahn
Kurt B. Kaiser
Tamito Kajiyama
Peter van Kampen
+Rafe Kaplan
Jacob Kaplan-Moss
Lou Kates
Hiroaki Kawai
diff --git a/Misc/NEWS b/Misc/NEWS
index 6855696..f41096a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1306,6 +1306,14 @@ Library
Extension Modules
-----------------
+- Issue #5094: The ``datetime`` module now has a simple concrete class
+ implementing ``datetime.tzinfo`` interface. Instances of the new
+ class, ``datetime.timezone``, return fixed name and UTC offset from
+ their ``tzname(dt)`` and ``utcoffset(dt)`` methods. The ``dst(dt)``
+ method always returns ``None``. A class attribute, ``utc`` contains
+ an instance representing the UTC timezone. Original patch by Rafe
+ Kaplan.
+
- Issue #8973: Add __all__ to struct module; this ensures that
help(struct) includes documentation for the struct.Struct class.