Miss Islington (bot)
a8bb18bbb9
bpo-30516: Fix documentation issue with -timedelta in datetime (GH-7348) (GH-8093)
...
This commit fixes the -timedelta overfllow issue not documented properly.
Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com >
(cherry picked from commit 5b6e49a139 )
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com >
2018-07-05 00:04:24 +01:00
Miss Islington (bot)
037e912552
bpo-33812: Corrected astimezone for naive datetimes. (GH-7578) (GH-7600)
...
A datetime object d is aware if d.tzinfo is not None and
d.tzinfo.utcoffset(d) does not return None. If d.tzinfo is None,
or if d.tzinfo is not None but d.tzinfo.utcoffset(d) returns None,
d is naive.
This commit ensures that instances with non-None d.tzinfo, but
d.tzinfo.utcoffset(d) returning None are treated as naive.
In addition, C acceleration code will raise TypeError if
d.tzinfo.utcoffset(d) returns an object with the type other than
timedelta.
* Updated the documentation.
Assume that the term "naive" is defined elsewhere and remove the
not entirely correct clarification. Thanks, Tim.
(cherry picked from commit 877b23202b )
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com >
2018-06-10 18:02:24 -04:00
Serhiy Storchaka
fd93666c8a
[3.7] Fix duplicating words words. (GH-6296) (GH-6297)
...
Most of them have been added in 3.7.
(cherry picked from commit bac2d5ba30 )
2018-03-28 23:05:24 +03:00
Paul Ganssle
09dc2f508c
bpo-15873: Implement [date][time].fromisoformat ( #4699 )
...
Closes bpo-15873.
2017-12-21 00:33:49 -05:00
Utkarsh Upadhyay
843ea47a03
bpo-31545: Update documentation containing timedelta repr. (GH-3687)
...
This is a fix to the documentation to reflect the changes merged
in as part of bpo-30302.
2017-10-27 14:25:15 +03:00
Mario Corchero
32318930da
Closes bpo-31800: Support for colon when parsing time offsets ( #4015 )
...
Add support to strptime to parse time offsets with a colon between the hour and the minutes.
2017-10-25 20:35:41 -04:00
Alexander Belopolsky
018d353c1c
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. ( #2896 )
...
* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets.
* bpo-5288: Implemented %z formatting of sub-minute offsets.
* bpo-5288: Removed mentions of the whole minute limitation on TZ offsets.
* bpo-5288: Removed one more mention of the whole minute limitation.
Thanks @csabella!
* Fix a formatting error in the docs
* Addressed review comments.
Thanks, @haypo.
2017-07-31 10:26:50 -04:00
Utkarsh Upadhyay
8e45318b0d
bpo-30302: Update WhatsNew and documentation. ( #2929 )
...
* Update 'Porting to .37' section.
* Fix a minor example in the doc.
2017-07-28 14:42:56 +02:00
Utkarsh Upadhyay
cc5a65cd90
bpo-30302 Make timedelta.__repr__ more informative. ( #1493 )
2017-07-25 23:51:33 +02:00
wim glenn
53f2af1655
bpo-30583: Fix typo in datetime dateutil documentation (GH-1972)
...
Replace `datetuil` into `dateutil`
2017-06-06 10:54:41 -07:00
delirious-lettuce
c7b3f0fc3b
Remove trailing semicolon in datetime doc example (GH-1653)
2017-05-18 18:01:00 -07:00
Marco Buttu
909a6f626f
bpo-27200: Fix doctests in programming.rst and datetime.rst ( #401 )
2017-03-18 19:59:33 +03:00
Xiang Zhang
b8a1aebb3d
Issue #29078 : Merge 3.5.
2016-12-27 12:30:42 +08:00
Xiang Zhang
6721c7c3b2
Issue #29078 : Add the missing import in datetime.time doc example.
...
Patch by Dhushyanth Ramasamy.
2016-12-27 12:23:59 +08:00
Serhiy Storchaka
ee1b01a41b
Issue #21818 : Fixed references to classes that have names matching with module
...
names.
2016-12-02 23:13:53 +02:00
Serhiy Storchaka
b6a6b45458
Issue #21818 : Fixed references to classes that have names matching with module
...
names.
2016-12-02 23:15:22 +02:00
Raymond Hettinger
15f44ab043
Issue #27895 : Spelling fixes (Contributed by Ville Skyttä).
2016-08-30 10:47:49 -07:00
Alexander Belopolsky
53868aaabb
Closes #27595 : Document PEP 495 (Local Time Disambiguation) features.
2016-08-24 18:30:16 -04:00
Alexander Belopolsky
43746c3770
Closes #27661 : Added tzinfo keyword argument to datetime.combine.
2016-08-02 17:49:30 -04:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Berker Peksag
94f89a6e02
Fix typos in datetime documentation.
2016-06-04 21:36:53 -07:00
Martin Panter
f157982b2c
Issue #27076 : More doc and comment spelling fixes for 3.6, by Ville Skyttä
2016-05-26 06:03:33 +00:00
Serhiy Storchaka
1acbf853c8
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:58 +03:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00