Miss Islington (bot)
678c5c0752
bpo-34512: Document platform-specific strftime() behavior for non-ASCII format strings (GH-8948)
...
(cherry picked from commit 1cffd0eed3
)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2019-01-12 09:27:30 -08:00
Serhiy Storchaka
b183750f99
[3.7] bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231). (GH-10253)
...
(cherry picked from commit 3f819ca138
)
2018-10-31 11:00:24 +02:00
Miss Islington (bot)
a02bc719eb
bpo-27741: Better wording for datetime.strptime() (GH-9994)
...
(cherry picked from commit c0799ec973
)
Co-authored-by: Gus Goulart <augusto@goulart.me>
2018-10-29 04:55:08 -07:00
Miss Islington (bot)
fdf48b6b88
bpo-35054: Add yet more index entries for symbols. (GH-10121) (GH-10171)
...
(cherry picked from commit 913876d824
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-10-28 18:43:32 +02:00
Serhiy Storchaka
9a75b8470a
[3.7] bpo-35054: Add more index entries for symbols. (GH-10064). (GH-10120)
...
(cherry picked from commit ddb961d2ab
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-10-26 11:18:42 +03:00
Miss Islington (bot)
0991b9bb94
[3.7] bpo-34158: Documentation UTC offset update (GH-8377) (GH-9732)
...
* Documentation of UTC offset update
Since changes in the UTC offset that allows sub-minute offsets, the documentation needs update:
- "%z" format code documentation update
Karthikeyan Singaravelan commented on bugs.python.org:
Added as part of 018d353c1c
and a fix regarding duplicate words for that part was added at bac2d5ba30
.
Relevant format string at https://github.com/python/cpython/pull/2896/filesGH-diff-25e2d173c84057d069b7890450714eddR214 .
Relevant test case with 6-digit string for microsecond : https://github.com/python/cpython/pull/2896/filesGH-diff-acc40bec51c7de832de3361db3edae52R309 .
Table at https://docs.python.org/3.7/library/datetime.htmlGH-strftime-and-strptime-behavior could also be updated with microseconds being optional in the second column
%z | UTC offset in the form ±HHMM[SS] (empty string if the object is naive). | (empty), +0000, -0400, +1030
- isoformat documentation update
According to me, needs confirmation:
Relevant format string at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714eddR176
Relevant test case at https://github.com/python/cpython/pull/4699/filesGH-diff-25e2d173c84057d069b7890450714edd
* From Martin Panter: some style improvment;
From @pganssle: using f for fractional part of seconds in all file.
(cherry picked from commit 92878829c3
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2018-10-05 22:44:23 -04:00
Miss Islington (bot)
e2b40f4ce9
bpo-34365: Update date object documentation (GH-8814)
...
Python 3.x does not fall back to comparing object addresses when comparing two `dt` objects.
<!-- issue-number: [bpo-34365](https://www.bugs.python.org/issue34365 ) -->
https://bugs.python.org/issue34365
<!-- /issue-number -->
(cherry picked from commit 9c223794c7
)
Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
2018-09-11 14:24:53 -07:00
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
Berker Peksag
9fc385748c
Issue #26957 : Remove duplicate 'the' from datetime documentation
...
Patch by Alex Chan.
2016-05-04 23:26:04 +03:00
Berker Peksag
bace976db1
Issue #26957 : Remove duplicate 'the' from datetime documentation
...
Patch by Alex Chan.
2016-05-04 23:25:44 +03:00
Martin Panter
6b6abd4cf1
Issue #26678 : Merge datetime doc fixes from 3.5
2016-04-01 23:20:52 +00:00
Martin Panter
16c7cfda7c
Issue #26678 : Fix indexing of datetime.tzinfo and timezone classes
...
Also fix links to the “tzinfo” class and attributes.
2016-04-01 21:48:24 +00:00
Alexander Belopolsky
a2998a63c8
Closes #19475 : Added timespec to the datetime.isoformat() method.
...
Added an optional argument timespec to the datetime isoformat() method
to choose the precision of the time component.
Original patch by Alessandro Cucci.
2016-03-06 14:58:43 -05:00
Martin Panter
bc1ee460dc
Issue #25179 : Documentation for formatted string literals aka f-strings
...
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
2016-02-13 00:41:37 +00:00
Martin Panter
46988d3659
Merge string formatting doc fixes from 3.5
2016-02-08 01:49:35 +00:00
Martin Panter
d5db14794b
Issue #25179 : Preparatory cleanup of existing docs on string formatting
...
* Various sections were pointing to the section on the string.Formatter
class, when the section on the common format string syntax is probably more
appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
and this is tested; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00
Alexander Belopolsky
68713e41a5
Closes issue #12006 : Add ISO 8601 year, week, and day directives to strptime.
...
This commit adds %G, %V, and %u directives to strptime. Thanks Ashley Anderson
for the implementation.
2015-10-06 13:29:56 -04:00
Berker Peksag
df326eb1bb
Fix versionchanged directive in datetime.rst
2015-09-09 18:32:50 +03:00
Alexander Belopolsky
7827a5b7c2
Closes Issue#22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.
2015-09-06 13:07:21 -04:00
Benjamin Peterson
644adc6ada
merge 3.4 ( #24057 )
2015-04-25 14:16:25 -04:00
Benjamin Peterson
d87dd434c0
fix relative link ( closes #24057 )
2015-04-25 14:15:16 -04:00
Alexander Belopolsky
e2e178e081
Closes issue #22791 : Improved datetime from timestamp methods documentation.
...
Original patch by Akira Li.
2015-03-01 14:52:07 -05:00
Georg Brandl
bad8d4bb53
merge with 3.4
2014-10-29 10:57:42 +01:00
Georg Brandl
b7354a65ce
Fixing broken links in doc, part 4: some more breaks and redirects
2014-10-29 10:57:37 +01:00
Georg Brandl
cadc3fdcb5
Merge with 3.4
2014-10-29 08:37:29 +01:00
Georg Brandl
e73778c1ac
Use https:// URLs when referring to python.org hosts.
2014-10-29 08:36:35 +01:00