summaryrefslogtreecommitdiffstats
path: root/Doc/library/time.rst
Commit message (Collapse)AuthorAgeFilesLines
* closes bpo-29275: Remove Y2K reference from time module docs (GH-17321)Callum Ward2019-11-221-10/+5
| | | | | | The Y2K reference is not needed as it only points out that Python's use of C standard functions doesn't generally suffer from Y2K issues; the point regarding conventions for conversion of 2-digit years in :func:`strptime` is still valid.
* bpo-13927: time.ctime and time.asctime return string explantion (GH-11303)Harmandeep Singh2019-09-121-7/+15
| | | | | | | | * bpo-13927: time.ctime and time.asctime return string explantion * Add note explaining that time.ctime and time.asctime returns a space padded date value in case it contains a single digit date * Reformat linebreaks
* fix link to time function from time_ns doc (GH-15285)Éric Araujo2019-08-171-1/+1
| | | Because mod, func, class, etc all share one namespace, :func:time creates a link to the time module doc page rather than the time.time function.
* bpo-36895: Undocument removed time.clock (GH-13286)Matthias Bussonnier2019-05-131-24/+0
|
* bpo-36895: remove time.clock() as per removal notice. (GH-13270)Matthias Bussonnier2019-05-131-1/+1
| | | | `time.clock()` was deprecated in 3.3, and marked for removal removal in 3.8; this thus remove it from the time module.
* bpo-31904: Port the time module on VxWorks (GH-12305)pxinwr2019-04-151-0/+2
| | | time.clock() is not available on VxWorks.
* bpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)Joannah Nanjekye2019-01-111-2/+2
| | | | | | Document that the time.CLOCK_MONOTONIC_RAW constant is now also available on macOS 10.12. Co-authored-by: Ricardo Fraile <rfraile@rfraile.eu>
* bpo-35702: Add new identifier time.CLOCK_UPTIME_RAW for macOS 10.12 (GH-11503)Joannah Nanjekye2019-01-101-0/+12
|
* bpo-23451: Update time.monotonic() documentation (GH-11190)Victor Stinner2018-12-171-9/+1
| | | | bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer, time.monotonic() is now always system-wide.
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-281-2/+2
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-261-0/+6
|
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-121-17/+17
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* bpo-32593: Drop FreeBSD 9 and older support (#5232)Victor Stinner2018-01-221-2/+2
| | | Drop support of FreeBSD 9 and older.
* bpo-32025: Add time.thread_time() (#4410)Antoine Pitrou2017-11-151-0/+27
| | | | | | | | | | | | | | * bpo-32025: Add time.thread_time() * Add missing #endif * Add NEWS blurb * Add docs and whatsnew * Address review comments * Review comments
* bpo-31784: Implement PEP 564: add time.time_ns() (#3989)Victor Stinner2017-11-021-6/+49
| | | | | | | | | | | | | | | | | | | | | | | | | Add new time functions: * time.clock_gettime_ns() * time.clock_settime_ns() * time.monotonic_ns() * time.perf_counter_ns() * time.process_time_ns() * time.time_ns() Add new _PyTime functions: * _PyTime_FromTimespec() * _PyTime_FromNanosecondsObject() * _PyTime_FromTimeval() Other changes: * Add also os.times() tests to test_os. * pytime_fromtimeval() and pytime_fromtimeval() now return _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined behaviour * _PyTime_FromNanoseconds() parameter type changes from long long to _PyTime_t
* bpo-31917: Add 3 new clock identifiers (#4207)Victor Stinner2017-11-021-0/+35
| | | | | | | Add new clock identfiers: * time.CLOCK_BOOTTIME * time.CLOCK_PROF * time.CLOCK_UPTIME
* time.clock() now emits a DeprecationWarning (GH-4020)Victor Stinner2017-10-171-0/+8
| | | | | | | | | | bpo-31803: time.clock() and time.get_clock_info('clock') now emit a DeprecationWarning warning. Replace time.clock() with time.perf_counter() in tests and demos. Remove also hasattr(time, 'monotonic') in test_time since time.monotonic() is now always available since Python 3.5.
* bpo-28157: Improvements for the time module documentation (GH-928)Cheryl Sabella2017-10-111-87/+115
| | | | | * Separated functions and constants descriptions in sections. * Added a note about the limitations of timezone constants. * Removed redundant lists from the module docstring.
* closes bpo-31596: Add an interface for pthread_getcpuclockid(3) (#3756)pdox2017-10-051-0/+16
|
* bpo-29026: Clarify documentation of time.time (#34)Eric Appelt2017-02-161-7/+35
| | | | | | | | | | | | | | | * bpo-29026: Clarity documentation of time.time Clarify the documentation of time.time by more precisely defining what is meant by "seconds since the epoch" on most platforms. Additionally explain how gmtime and localtime may be used to extract calendar components and convert to a more common date format. * bpo-29026: Minor improvements for time.time doc * bpo-29026: Consistency fixes for time.time doc
* Closes #28130: Documented that time.tzset() updates time module globals.Alexander Belopolsky2017-01-121-2/+7
| | | | Thanks Greg Bengeult for the patch.
* Closes #25283: Make tm_gmtoff and tm_zone available on all platforms.Alexander Belopolsky2016-09-121-4/+4
|
* Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+1
|\
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+1
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | merge from 3.5Senthil Kumaran2016-01-031-3/+5
|\ \ | |/ | | | | | | | | | | Issue21221 - Explain the usage of tm_isdst attribute of mktime, with valid values and meaning. Patch contributed by Andrew Scheller.
| * merge from 3.4Senthil Kumaran2016-01-031-3/+5
| |\ | | | | | | | | | | | | | | | | | | Issue21221 - Explain the usage of tm_isdst attribute of mktime, with valid values and meaning. Patch contributed by Andrew Scheller.
| | * Issue21221 - Explain the usage of tm_isdst attribute of mktime, with validSenthil Kumaran2016-01-031-3/+5
| | | | | | | | | | | | | | | | | | values and meaning. Patch contributed by Andrew Scheller.
* | | Fixed typos in TZ format descriptionAlexander Belopolsky2015-08-281-2/+2
|/ /
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-191-0/+5
| | | | | | | | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock.
* | Revert changeset d927047b1d8eb87738676980a24930d053ba2150Victor Stinner2015-03-171-4/+0
| | | | | | | | Sorry, it was a mistake, the patch is still under review: issue #23646.
* | testVictor Stinner2015-03-121-0/+4
| |
* | Merge: #23215: note that time.sleep affects the current thread only.R David Murray2015-01-251-6/+7
|\ \ | |/
| * #23215: reflow paragraph.R David Murray2015-01-251-6/+6
| |
| * #23251: Note that time.sleep affects the calling thread only.R David Murray2015-01-251-1/+2
| | | | | | | | This change parallels the language used in the unix man page.
* | merge with 3.4Georg Brandl2014-10-281-2/+1
|\ \ | |/
| * Closes #22749: remove outdated advice to use clock() for accurate timing.Georg Brandl2014-10-281-2/+1
| |
* | Issue #22043: time.monotonic() is now always availableVictor Stinner2014-09-021-2/+2
|/ | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used.
* Issue #18758: Fixed and improved cross-references.Serhiy Storchaka2013-10-131-2/+2
|
* Refer to strftime(3) manpage for platform specific format codes.Georg Brandl2013-10-131-2/+4
| | | | Suggested by Skip Montanaro on docs@.
* Issue #15940: Replace tab.Terry Jan Reedy2013-04-031-1/+1
|
* Issue #15940: Specify effect of locale on time functions.Terry Jan Reedy2013-04-031-2/+2
|
* Fix typo noticed by Tom Lynn.Ezio Melotti2012-11-051-1/+1
|
* Fix typo in documentation for time module, thanks to docs@Andrew Svetlov2012-10-041-1/+1
|
* Fix a couple of versionadded/versionchanged related markup errors.Georg Brandl2012-06-241-8/+5
|
* Issue #9527: tm_gmtoff has 'correct' sign.Alexander Belopolsky2012-06-221-1/+1
|
* Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fieldsAlexander Belopolsky2012-06-141-2/+21
| | | | | | 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.
* PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() resultVictor Stinner2012-06-121-2/+2
| | | | | | | | 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.
* time.get_clock_info() uses a namespace instead of structseqVictor Stinner2012-06-121-25/+11
|
* Fix time.time() references in the time module docsPetri Lehtinen2012-05-181-6/+6
|\ | | | | | | Closes #14842.
| * Fix time.time() references in the time module docsPetri Lehtinen2012-05-181-6/+6
| | | | | | | | Closes #14842.