Georg Brandl
01546a88b8
Closes #22749 : remove outdated advice to use clock() for accurate timing.
2014-10-28 21:35:35 +01:00
Serhiy Storchaka
bfdcd436f0
Issue #18758 : Fixed and improved cross-references.
2013-10-13 23:09:14 +03:00
Georg Brandl
b7117af07d
Refer to strftime(3) manpage for platform specific format codes.
...
Suggested by Skip Montanaro on docs@.
2013-10-13 18:28:25 +02:00
Terry Jan Reedy
41459a9b29
Issue #15940 : Replace tab.
2013-04-03 12:45:24 -04:00
Terry Jan Reedy
b5e2e7e93a
Issue #15940 : Specify effect of locale on time functions.
2013-04-03 12:34:57 -04:00
Ezio Melotti
99bafff7cc
Fix typo noticed by Tom Lynn.
2012-11-05 22:22:48 +02:00
Andrew Svetlov
3934b61a16
Fix typo in documentation for time module, thanks to docs@
2012-10-04 19:52:32 +03:00
Georg Brandl
61063cca6a
Fix a couple of versionadded/versionchanged related markup errors.
2012-06-24 22:48:30 +02:00
Alexander Belopolsky
93c9cd07b6
Issue #9527 : tm_gmtoff has 'correct' sign.
2012-06-22 16:04:19 -04:00
Alexander Belopolsky
c142bba2a7
Issue #1667546 : On platforms supporting tm_zone and tm_gmtoff fields
...
in struct tm, time.struct_time objects returned by time.gmtime(),
time.localtime() and time.strptime() functions now have tm_zone and
tm_gmtoff attributes. Original patch by Paul Boddie.
2012-06-13 22:15:26 -04:00
Victor Stinner
2b89fdf7eb
PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result
...
Fix also its value on Windows and Linux according to its documentation:
"adjustable" indicates if the clock *can be* adjusted, not if it is or was
adjusted.
In most cases, it is not possible to indicate if a clock is or was adjusted.
2012-06-12 22:46:37 +02:00
Victor Stinner
bda4b8802c
time.get_clock_info() uses a namespace instead of structseq
2012-06-12 22:11:44 +02:00
Petri Lehtinen
ed3639595a
Fix time.time() references in the time module docs
...
Closes #14842 .
2012-05-18 21:28:47 +03:00
Petri Lehtinen
1033b310a3
Fix time.time() references in the time module docs
...
Closes #14842 .
2012-05-18 21:22:47 +03:00
Benjamin Peterson
49a69e4d48
strip is_ prefixes on clock_info fields
2012-05-01 09:38:34 -04:00
Georg Brandl
514880caae
Review of doc changes re PEP 418.
2012-04-30 12:50:30 +02:00
Victor Stinner
47620a6611
Close #14309 : Deprecate time.clock()
...
Use time.perf_counter() or time.process_time() instead.
2012-04-29 02:52:39 +02:00
Victor Stinner
ec89539ccc
Issue #14428 , #14397 : Implement the PEP 418
...
* Rename time.steady() to time.monotonic()
* On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of
QueryPerformanceCounter()
* time.monotonic() uses CLOCK_HIGHRES if available
* Add time.get_clock_info(), time.perf_counter() and time.process_time()
functions
2012-04-29 02:41:27 +02:00
Victor Stinner
ca6e40f12a
Time doc: documentation that the CLOCK_* constants and clock_*() functions are
...
not always available.
2012-04-28 23:47:33 +02:00
Victor Stinner
6125e232e2
Doc: sort time.CLOCK_xxx constants
2012-04-12 21:40:14 +02:00
Victor Stinner
30d79471bb
Expose clock_settime() as time.clock_settime()
2012-04-03 00:45:07 +02:00
Victor Stinner
1470f35bc6
Add time.CLOCK_HIGHRES constant, needed on Solaris
2012-04-03 00:31:17 +02:00
Georg Brandl
909f5bc849
Fix newlines.
2012-03-29 09:18:14 +02:00
Victor Stinner
2bf1f3bee4
time.steady() doc: don't repeat the default value
2012-03-19 13:17:24 +01:00
R David Murray
7cc7033cb4
Merge #12758 : removing confusing mention of UTC from time.time description
...
Patch by Dylan Sarber.
(Not sure why hg told me it merged pyexpat.c too, it showed no changes)
2012-03-15 03:09:53 -04:00
R David Murray
38c2754652
#12758 : removing confusing mention of UTC from time.time description
...
Patch by Dylan Sarber.
2012-03-15 03:06:15 -04:00
Victor Stinner
071eca3f5c
Issue #10278 : Add an optional strict argument to time.steady(), False by default
2012-03-15 01:17:09 +01:00
Victor Stinner
ec919cc74d
Issue #10278 : Drop time.monotonic() function, rename time.wallclock() to time.steady()
...
* On Mac OS X, time.steady() now uses mach_absolute_time(), a monotonic clock
* Optimistic change: bet that CLOCK_MONOTONIC and CLOCK_REALTIME are available
when clock_gettime() is available
* Rewrite time.steady() documentation
2012-03-15 00:58:32 +01:00
Victor Stinner
0a786221d9
Issue #13846 : Enhance time.monotonic() documentation
2012-02-24 00:10:45 +01:00
Victor Stinner
0f7888d453
Time module doc: Fix reST syntax
2012-02-14 02:42:21 +01:00
Victor Stinner
4195b5caea
Backout f8409b3d6449: the PEP 410 is not accepted yet
2012-02-08 23:03:19 +01:00
Victor Stinner
ccd5715a14
PEP 410
2012-02-08 14:31:50 +01:00
Victor Stinner
8b30201f7d
Issue #13846 : Add time.monotonic(), monotonic clock.
2012-02-07 23:29:46 +01:00
Georg Brandl
538343d6ec
Fix small grammatical inconsistency.
2012-02-02 22:22:19 +01:00
Victor Stinner
09406023a8
Sort functions in the doc of the time module
...
Move wallclock() at the end.
2012-01-24 01:12:54 +01:00
Victor Stinner
b94b266cfc
Close #10278 : Add time.wallclock() function, monotonic clock.
2012-01-18 01:50:21 +01:00
Victor Stinner
e0be423297
Close #10278 : Add clock_getres(), clock_gettime() and CLOCK_xxx constants to
...
the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic
clock
2011-10-25 13:06:09 +02:00
Sandro Tosi
8e35cf0770
merge with 3.2
2011-08-19 18:40:56 +02:00
Sandro Tosi
f693810f69
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
2011-08-19 18:40:21 +02:00
Alexander Belopolsky
03163ac185
Issue #11930 : Remove deprecated time.accept2dyear.
2011-05-02 12:20:52 -04:00
Alexander Belopolsky
9971e001ef
Issue #2568 : Removed bogus rationale for supporting tm_sec=61.
2011-01-10 22:56:14 +00:00
Alexander Belopolsky
04da1e013a
Fixed a footnote reference
2011-01-10 19:14:38 +00:00
Alexander Belopolsky
2997837158
Fixed documentation to reflect recent changes for years < 1900.
2011-01-08 20:47:21 +00:00
Alexander Belopolsky
c64708ae48
Issue #10827 : Changed the rules for 2-digit years. The time.asctime
...
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise. The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00
Alexander Belopolsky
b9588b528a
Issue #8013 : time.asctime and time.ctime no longer call system asctime
...
and ctime functions. The year range for time.asctime is now 1900
through maxint. The range for time.ctime is the same as for
time.localtime. The string produced by these functions is longer than
24 characters when year is greater than 9999.
2011-01-04 16:34:30 +00:00
Georg Brandl
b67878a522
#7790 : move table of struct_time members to the actual description of struct_time.
2010-10-15 17:01:15 +00:00
Georg Brandl
60203b41b0
Migrate to Sphinx 1.0 C language constructs.
2010-10-06 10:11:56 +00:00
Alexander Belopolsky
69f3fd000d
Merged revisions 81756 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81756 | alexander.belopolsky | 2010-06-05 10:54:26 -0400 (Sat, 05 Jun 2010) | 1 line
Issue #8899 : time.struct_time now has class and atribute docstrings.
........
2010-06-05 15:04:51 +00:00
Georg Brandl
7f01a13e7c
Last round of adapting style of documenting argument default values.
2009-09-16 15:58:14 +00:00
Brett Cannon
7f6b4f86e3
Make sure time.strptime only accepts strings (and document the fact like
...
strftime). Already didn't accept bytes but make the check earlier. This also
lifts the limitation of requiring ASCII.
Closes issue #5236 . Thanks Tennessee Leeuwenburg.
2009-03-30 21:30:26 +00:00