diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-06-14 14:15:50 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-06-14 14:15:50 (GMT) |
commit | 4e749a1113acb4affed27afda07e17d96945290b (patch) | |
tree | 77f5847390e81b47a0df49d4899d759892a437cb /Misc | |
parent | 510b6227a764e6de23e48708cd3e1293ec2521be (diff) | |
download | cpython-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/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -406,6 +406,7 @@ Bob Kahn Kurt B. Kaiser Tamito Kajiyama Peter van Kampen +Rafe Kaplan Jacob Kaplan-Moss Lou Kates Hiroaki Kawai @@ -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. |