Senthil Kumaran
13c668229c
issue13666 - merge from 3.2
2012-06-26 20:01:06 +08:00
Senthil Kumaran
72a80e85a8
issue13666 - Fixing datetime documentation example when using tzinfo
2012-06-26 20:00:15 +08:00
Georg Brandl
ee0be40f29
Add yet another missing versionchanged.
2012-06-26 09:14:40 +02:00
Georg Brandl
217aa554fa
Fix markup, for real this time.
2012-06-24 22:26:21 +02:00
Éric Araujo
b0f0895849
Fix indentation
2012-06-24 16:22:09 -04:00
Alexander Belopolsky
fdc860f310
Issue #9527 : datetime.astimezone() method will now supply a class
...
timezone instance corresponding to the system local timezone when
called with no arguments.
2012-06-22 12:23:23 -04:00
Alexander Belopolsky
0831382d69
Issue #15006 : Allow equality comparison between naive and aware time
...
or datetime objects.
2012-06-15 20:19:47 -04:00
Alexander Belopolsky
a4415141da
Issue #2736 : Added datetime.timestamp() method.
2012-06-08 12:33:09 -04:00
R David Murray
d91dc62379
Merge #14766 : Add correct algorithm for when a 'time' object is naive.
...
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).
2012-05-14 22:19:10 -04:00
R David Murray
539f239e88
#14766 : Reflow the altered paragraphs.
2012-05-14 22:17:23 -04:00
R David Murray
9075d8b771
#14766 : Add correct algorithm for when a 'time' object is naive.
...
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).
2012-05-14 22:14:46 -04:00
Sandro Tosi
4aff7ed332
Issue #14448 : merge with 3.2
2012-04-28 11:19:59 +02:00
Sandro Tosi
100b889ccd
Issue #14448 : add reference to IANA timezone database; thanks to Georg/Nick suggestions
2012-04-28 11:19:37 +02:00
Sandro Tosi
17feca0efc
Issue #14448 : merge with 3.2
2012-04-24 19:46:29 +02:00
Sandro Tosi
d11d0d6343
Issue #14448 : mention pytz; patch by Andrew Svetlov
2012-04-24 19:46:06 +02:00
Victor Stinner
ecc6e6613f
Fix doc of datetime.date*.*fromtimestamp() methods
2012-03-14 00:39:29 +01:00
Victor Stinner
21f5893571
Issue #14180 : datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()
...
and datetime.datetime.utcfromtimestamp() now raise an OSError instead of
ValueError if localtime() or gmtime() failed.
2012-03-14 00:15:40 +01:00
Victor Stinner
5d272cc6a2
Close #14180 : Factorize code to convert a number of seconds to time_t, 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.
2012-03-13 13:35:55 +01:00
Sandro Tosi
b6dbc9ee15
merge with 3.2
2011-11-01 10:32:22 +01:00
Sandro Tosi
4bfe03a42e
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
2011-11-01 10:32:05 +01:00
Ezio Melotti
6fe679f011
#13076 : merge with 3.2.
2011-10-02 12:47:10 +03:00
Ezio Melotti
35ec7f771b
#13076 : fix links to datetime.time and datetime.datetime.
2011-10-02 12:44:50 +03:00
Georg Brandl
902e895578
merge doc fixes from 3.2
2011-09-17 20:40:35 +02:00
Georg Brandl
755460694e
Fix typo.
2011-09-17 20:20:04 +02:00
Senthil Kumaran
42d1320c06
merge from 3.2
2011-07-17 19:06:03 +08:00
Senthil Kumaran
023c6f703d
Fix Issue10403 - datetime documentation clarification based on review in the reitveld by Alexendar belopolsky.
2011-07-17 19:01:14 +08:00
Senthil Kumaran
8fbfc12f5e
merge from 3.2
2011-07-04 11:44:17 -07:00
Senthil Kumaran
3aac179498
Fix whitespace nit in datetime and os rst files.
2011-07-04 11:43:51 -07:00
Senthil Kumaran
276a58b821
Merge from 3.2 . Replace the term members with correct and appropriate terminology. Initial patch by Adam Woodbeck.
2011-07-04 11:31:53 -07:00
Senthil Kumaran
a6bac95a3c
issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.
2011-07-04 11:28:30 -07:00
Alexander Belopolsky
6d3c9a6893
Mention that timezone is a subclass of tzinfo.
2011-05-04 10:28:26 -04:00
Alexander Belopolsky
5611a1c326
Issue #11930 : Added Misc/NEWS and versionchanged entries.
2011-05-02 14:14:48 -04:00
Alexander Belopolsky
89da349b7b
Issue #11930 : Remove year >= 1000 limitation from datetime.strftime.
...
Patch by Victor Stinner.
2011-05-02 13:14:24 -04:00
Alexander Belopolsky
54afa5504c
Issue #2736 : Documented how to compute seconds since epoch.
2011-04-25 13:00:40 -04:00
Alexander Belopolsky
5fc850b455
Improved footnote for the %Y directive slightly.
2011-01-10 23:31:51 +00:00
Alexander Belopolsky
085556ae89
Improved description of %Y directive.
2011-01-10 23:28:33 +00:00
Alexander Belopolsky
9971e001ef
Issue #2568 : Removed bogus rationale for supporting tm_sec=61.
2011-01-10 22:56:14 +00:00
Alexander Belopolsky
2997837158
Fixed documentation to reflect recent changes for years < 1900.
2011-01-08 20:47:21 +00:00
Georg Brandl
682d7e0e07
Fix errors found by "make suspicious".
2010-10-06 10:26:05 +00:00
Georg Brandl
60203b41b0
Migrate to Sphinx 1.0 C language constructs.
2010-10-06 10:11:56 +00:00
Georg Brandl
67b21b7547
Consistency check for versionadded/changed directives.
2010-08-17 15:07:14 +00:00
Georg Brandl
f55c31594b
#9430 : document timedelta str() and repr().
2010-07-31 11:40:07 +00:00
Alexander Belopolsky
75f94c210a
Issue #9005 : Prevent utctimetuple() from producing year 0 or year 10,000.
2010-06-21 15:21:14 +00:00
Alexander Belopolsky
49d7a57f33
Added a new line at the end of the file.
2010-06-18 16:57:49 +00:00
Alexander Belopolsky
ca94f55758
Issue #6641 : The datetime.strptime method now supports the %z directive.
2010-06-17 18:30:34 +00:00
Alexander Belopolsky
b39a0c242d
Issue 5094: minor documentation fixes
2010-06-15 19:24:52 +00:00
Alexander Belopolsky
4e749a1113
Issue #5094 : The ``datetime`` module now has a simple concrete class
...
implementing ``datetime.tzinfo`` interface.
2010-06-14 14:15:50 +00:00
Alexander Belopolsky
da62f2fe28
Merged revisions 81864 via svnmerge from
...
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.
........
2010-06-09 17:11:01 +00:00
Alexander Belopolsky
649124856a
Merged revisions 81489 via svnmerge from
...
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.
........
2010-06-08 18:59:20 +00:00
Alexander Belopolsky
1790bc43bf
Issue #1289118 : datetime.timedelta objects can now be multiplied by float
...
and divided by float and int objects.
2010-05-31 17:33:47 +00:00