diff options
author | Paul Ganssle <pganssle@users.noreply.github.com> | 2019-04-29 13:22:03 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-04-29 13:22:03 (GMT) |
commit | 88c093705615c50c47fdd9ab976803f73de7e308 (patch) | |
tree | 4a76496a2c930d1e27e020555f4b91e2b43f777b /Misc | |
parent | a86e06433a010f873dfd7957e0f87a39539876ee (diff) | |
download | cpython-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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-02-17-12-55-51.bpo-36004.hCt_KK.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-02-17-12-55-51.bpo-36004.hCt_KK.rst b/Misc/NEWS.d/next/Library/2019-02-17-12-55-51.bpo-36004.hCt_KK.rst new file mode 100644 index 0000000..d2162be --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-02-17-12-55-51.bpo-36004.hCt_KK.rst @@ -0,0 +1,4 @@ +Added new alternate constructors :meth:`datetime.date.fromisocalendar` and +:meth:`datetime.datetime.fromisocalendar`, which construct date objects from +ISO year, week number and weekday; these are the inverse of each class's +``isocalendar`` method. Patch by Paul Ganssle. |