summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | merge with 3.2Sandro Tosi2011-11-011-2/+2
|\ \ | |/
| * correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from ↵Sandro Tosi2011-11-011-2/+2
| | | | | | | | docs@
* | #13076: merge with 3.2.Ezio Melotti2011-10-021-76/+76
|\ \ | |/
| * #13076: fix links to datetime.time and datetime.datetime.Ezio Melotti2011-10-021-76/+76
| |
* | merge doc fixes from 3.2Georg Brandl2011-09-171-1/+1
|\ \ | |/
| * Fix typo.Georg Brandl2011-09-171-1/+1
| |
* | merge from 3.2Senthil Kumaran2011-07-171-18/+20
|\ \ | |/
| * Fix Issue10403 - datetime documentation clarification based on review in the ↵Senthil Kumaran2011-07-171-18/+20
| | | | | | | | reitveld by Alexendar belopolsky.
* | merge from 3.2Senthil Kumaran2011-07-041-1/+1
|\ \ | |/
| * Fix whitespace nit in datetime and os rst files.Senthil Kumaran2011-07-041-1/+1
| |
* | Merge from 3.2 . Replace the term members with correct and appropriate ↵Senthil Kumaran2011-07-041-66/+67
|\ \ | |/ | | | | terminology. Initial patch by Adam Woodbeck.
| * issue10403 - Let's not use members anymore. Use 'attribute' where it denotes ↵Senthil Kumaran2011-07-041-66/+67
| | | | | | | | attribute and 'methods' where it denotes methods. Context should clarify usage.
* | Mention that timezone is a subclass of tzinfo.Alexander Belopolsky2011-05-041-5/+6
| |
* | Issue #11930: Added Misc/NEWS and versionchanged entries.Alexander Belopolsky2011-05-021-0/+4
| |
* | Issue #11930: Remove year >= 1000 limitation from datetime.strftime.Alexander Belopolsky2011-05-021-6/+2
| | | | | | | | Patch by Victor Stinner.
* | Issue #2736: Documented how to compute seconds since epoch.Alexander Belopolsky2011-04-251-0/+16
|/
* Improved footnote for the %Y directive slightly.Alexander Belopolsky2011-01-101-5/+5
|
* Improved description of %Y directive.Alexander Belopolsky2011-01-101-7/+16
|
* Issue #2568: Removed bogus rationale for supporting tm_sec=61.Alexander Belopolsky2011-01-101-11/+4
|
* Fixed documentation to reflect recent changes for years < 1900.Alexander Belopolsky2011-01-081-2/+6
|
* Fix errors found by "make suspicious".Georg Brandl2010-10-061-1/+1
|
* Migrate to Sphinx 1.0 C language constructs.Georg Brandl2010-10-061-7/+7
|
* Consistency check for versionadded/changed directives.Georg Brandl2010-08-171-12/+9
|
* #9430: document timedelta str() and repr().Georg Brandl2010-07-311-0/+18
|
* Issue #9005: Prevent utctimetuple() from producing year 0 or year 10,000.Alexander Belopolsky2010-06-211-4/+4
|
* Added a new line at the end of the file.Alexander Belopolsky2010-06-181-1/+1
|
* Issue #6641: The datetime.strptime method now supports the %z directive.Alexander Belopolsky2010-06-171-0/+7
|
* Issue 5094: minor documentation fixesAlexander Belopolsky2010-06-151-22/+22
|
* Issue #5094: The ``datetime`` module now has a simple concrete classAlexander Belopolsky2010-06-141-12/+82
| | | | implementing ``datetime.tzinfo`` interface.
* Merged revisions 81864 via svnmerge fromAlexander Belopolsky2010-06-091-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81864 | alexander.belopolsky | 2010-06-09 13:08:11 -0400 (Wed, 09 Jun 2010) | 1 line Fixed markup of tm_isdst attribute. ........
* Merged revisions 81489 via svnmerge fromAlexander Belopolsky2010-06-081-7/+10
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81489 | georg.brandl | 2010-05-23 17:29:29 -0400 (Sun, 23 May 2010) | 1 line #1436346: make it more obvious that timetuple[7] is yday. ........
* Issue #1289118: datetime.timedelta objects can now be multiplied by floatAlexander Belopolsky2010-05-311-2/+12
| | | | and divided by float and int objects.
* Issue #8644: Improve accuracy of timedelta.total_seconds, by doing intermediateMark Dickinson2010-05-081-1/+4
| | | | | | | computations with integer arithmetic instead of floating point. td.total_seconds() now agrees with td / timedelta(seconds = 1). Thanks Alexander Belopolsky for the patch.
* Issue #2706: Add support for dividing a timedelta by another timedelta.Mark Dickinson2010-04-201-2/+20
| | | | | | | | | | | | | Adds support for the three division operations: - timedelta / timedelta -> float - timedelta // timedelta -> int - timedelta % timedelta -> timedelta also adds support for divmod(timedelta, timedelta). Patch by Victor Stinner, adapted for py3k and extended by Alexander Belopolsky.
* Merged revisions 79184-79185 via svnmerge fromGeorg Brandl2010-03-211-2/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79184 | georg.brandl | 2010-03-21 10:58:36 +0100 (So, 21 Mär 2010) | 1 line Update text for newest US DST regulation. The sample file already has the calculation right. ........ r79185 | georg.brandl | 2010-03-21 11:02:47 +0100 (So, 21 Mär 2010) | 1 line Include structmember.h correctly. ........