summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26678: Merge datetime doc fixes from 3.5Martin Panter2016-04-011-59/+63
|\
| * Issue #26678: Fix indexing of datetime.tzinfo and timezone classesMartin Panter2016-04-011-59/+63
| | | | | | | | Also fix links to the “tzinfo” class and attributes.
* | Closes #19475: Added timespec to the datetime.isoformat() method.Alexander Belopolsky2016-03-061-3/+67
| | | | | | | | | | | | | | Added an optional argument timespec to the datetime isoformat() method to choose the precision of the time component. Original patch by Alessandro Cucci.
* | Issue #25179: Documentation for formatted string literals aka f-stringsMartin Panter2016-02-131-3/+6
| | | | | | | | | | Some of the inspiration and wording is taken from the text of PEP 498 by Eric V. Smith, and the existing str.format() documentation.
* | Merge string formatting doc fixes from 3.5Martin Panter2016-02-081-3/+3
|\ \ | |/
| * Issue #25179: Preparatory cleanup of existing docs on string formattingMartin Panter2016-02-081-3/+3
| | | | | | | | | | | | | | | | | | * 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
* | Closes issue #12006: Add ISO 8601 year, week, and day directives to strptime.Alexander Belopolsky2015-10-061-1/+36
| | | | | | | | | | This commit adds %G, %V, and %u directives to strptime. Thanks Ashley Anderson for the implementation.
* | Fix versionchanged directive in datetime.rstBerker Peksag2015-09-091-2/+2
| |
* | Closes Issue#22241: timezone.utc name is now plain 'UTC', not 'UTC-00:00'.Alexander Belopolsky2015-09-061-7/+12
|/
* merge 3.4 (#24057)Benjamin Peterson2015-04-251-2/+2
|\
| * fix relative link (closes #24057)Benjamin Peterson2015-04-251-2/+2
| |
* | Closes issue #22791: Improved datetime from timestamp methods documentation.Alexander Belopolsky2015-03-011-5/+11
| | | | | | | | Original patch by Akira Li.
* | merge with 3.4Georg Brandl2014-10-291-1/+1
|\ \ | |/
| * Fixing broken links in doc, part 4: some more breaks and redirectsGeorg Brandl2014-10-291-1/+1
| |
* | Merge with 3.4Georg Brandl2014-10-291-1/+1
|\ \ | |/
| * Use https:// URLs when referring to python.org hosts.Georg Brandl2014-10-291-1/+1
| |
* | merge 3.4 (#16667)Benjamin Peterson2014-06-221-4/+6
|\ \ | |/
| * some timezone doc improvements (closes #16667)Benjamin Peterson2014-06-221-4/+6
| | | | | | | | From the combined efforts of Berber Peksage, Andrew Svetlov, and Yayoi Ukai.
* | remove the ability of datetime.time to be considered false (closes #13936)Benjamin Peterson2014-03-201-3/+6
| |
* | #13437: link to the source code for a few more modulesAndrew Kuchling2014-03-191-0/+2
|/
* merge with 3.3Georg Brandl2013-10-291-1/+1
|\
| * Fix typo: js_JP is not a valid locale.Georg Brandl2013-10-291-1/+1
| |
* | merge with 3.3Georg Brandl2013-10-131-1/+2
|\ \ | |/
| * Refer to strftime(3) manpage for platform specific format codes.Georg Brandl2013-10-131-1/+2
| | | | | | | | Suggested by Skip Montanaro on docs@.
| * Remove errant fourth '.' from ellipsis in datetime documentation.David Wolever2013-08-141-2/+2
| |
* | Remove errant fourth '.' from ellipsis in datetime documentation.David Wolever2013-08-141-1/+1
| |
* | Merge issue #17701: Improving strftime documentation.David Wolever2013-08-121-138/+166
|\ \ | |/
| * Issue #17701: Improving strftime documentation.David Wolever2013-08-121-138/+166
| |
* | Fixes #8860: Round half-microseconds to even in the timedelta constructor.Alexander Belopolsky2013-08-041-4/+6
|/ | | | (Original patch by Mark Dickinson.)
* #8913: add examples and docs for date/time/datetime.__format__. Patch by ↵Ezio Melotti2013-04-041-0/+27
| | | | Heikki Partanen.
* Fix typoAndrew Svetlov2012-12-171-1/+1
|\
| * Fix typoAndrew Svetlov2012-12-171-1/+1
| |
* | issue13666 - merge from 3.2Senthil Kumaran2012-06-261-10/+9
|\ \ | |/
| * issue13666 - Fixing datetime documentation example when using tzinfoSenthil Kumaran2012-06-261-10/+9
| |
* | Add yet another missing versionchanged.Georg Brandl2012-06-261-0/+3
| |
* | Fix markup, for real this time.Georg Brandl2012-06-241-2/+0
| |
* | Fix indentationÉric Araujo2012-06-241-4/+4
| |
* | Issue #9527: datetime.astimezone() method will now supply a classAlexander Belopolsky2012-06-221-3/+8
| | | | | | | | | | timezone instance corresponding to the system local timezone when called with no arguments.
* | Issue #15006: Allow equality comparison between naive and aware timeAlexander Belopolsky2012-06-161-2/+18
| | | | | | | | or datetime objects.
* | Issue #2736: Added datetime.timestamp() method.Alexander Belopolsky2012-06-081-11/+33
| |
* | Merge #14766: Add correct algorithm for when a 'time' object is naive.R David Murray2012-05-151-26/+39
|\ \ | |/ | | | | | | | | | | This patch also clarifies the definition of Naive and Aware. Original patch by Greg Weller, I modified the first hunk somewhat to make the exposition even clearer (I hope).
| * #14766: Reflow the altered paragraphs.R David Murray2012-05-151-18/+17
| |
| * #14766: Add correct algorithm for when a 'time' object is naive.R David Murray2012-05-151-12/+26
| | | | | | | | | | | | | | This patch also clarifies the definition of Naive and Aware. Original patch by Greg Weller, I modified the first hunk somewhat to make the exposition even clearer (I hope).
* | Issue #14448: merge with 3.2Sandro Tosi2012-04-281-5/+12
|\ \ | |/
| * Issue #14448: add reference to IANA timezone database; thanks to Georg/Nick ↵Sandro Tosi2012-04-281-5/+12
| | | | | | | | suggestions
* | Issue #14448: merge with 3.2Sandro Tosi2012-04-241-1/+9
|\ \ | |/
| * Issue #14448: mention pytz; patch by Andrew SvetlovSandro Tosi2012-04-241-1/+9
| |
* | Fix doc of datetime.date*.*fromtimestamp() methodsVictor Stinner2012-03-131-5/+9
| |
* | Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()Victor Stinner2012-03-131-3/+7
| | | | | | | | | | and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed.
* | Close #14180: Factorize code to convert a number of seconds to time_t, ↵Victor Stinner2012-03-131-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | timeval or timespec time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t. datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero.