summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorPaul Ganssle <pganssle@users.noreply.github.com>2019-04-29 13:22:03 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-04-29 13:22:03 (GMT)
commit88c093705615c50c47fdd9ab976803f73de7e308 (patch)
tree4a76496a2c930d1e27e020555f4b91e2b43f777b /Doc/whatsnew
parenta86e06433a010f873dfd7957e0f87a39539876ee (diff)
downloadcpython-88c093705615c50c47fdd9ab976803f73de7e308.zip
cpython-88c093705615c50c47fdd9ab976803f73de7e308.tar.gz
cpython-88c093705615c50c47fdd9ab976803f73de7e308.tar.bz2
bpo-36004: Add date.fromisocalendar (GH-11888)
This commit implements the first version of date.fromisocalendar, the inverse function for date.isocalendar.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 225faf8..ac57335 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -244,6 +244,16 @@ where the DLL is stored (if a full or partial path is used to load the initial
DLL) and paths added by :func:`~os.add_dll_directory`.
+datetime
+--------
+
+Added new alternate constructors :meth:`datetime.date.fromisocalendar` and
+:meth:`datetime.datetime.fromisocalendar`, which construct :class:`date` and
+:class:`datetime` objects respectively from ISO year, week number and weekday;
+these are the inverse of each class's ``isocalendar`` method.
+(Contributed by Paul Ganssle in :issue:`36004`.)
+
+
gettext
-------