summaryrefslogtreecommitdiff
path: root/Python/pytime.c
AgeCommit message (Collapse)AuthorLines
2012-06-12PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() resultVictor Stinner-7/+4
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-05-03Issue #14127: Add ns= parameter to utime, futimes, and lutimes.Larry Hastings-1/+1
Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux!
2012-05-01strip is_ prefixes on clock_info fieldsBenjamin Peterson-9/+9
2012-04-29Issue #14428, #14397: Implement the PEP 418Victor Stinner-8/+54
* 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-19Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings-0/+11
2012-03-13Issue #14180: Fix an invalid rounding when compiler optimization are enabledVictor Stinner-1/+3
Use volatile keyword to disable localy unsafe float optimizations.
2012-03-13Issue #14180: Remove commented codeVictor Stinner-2/+0
2012-03-13Close #14180: Factorize code to convert a number of seconds to time_t, ↵Victor Stinner-22/+77
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-02Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tupleVictor Stinner-0/+45
Add a private API to convert an int or float to a C timespec structure.
2012-02-08Backout f8409b3d6449: the PEP 410 is not accepted yetVictor Stinner-325/+18
2012-02-08PEP 410Victor Stinner-18/+325
2012-02-07Issue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime()Victor Stinner-8/+25
to have a resolution of 100 ns instead of 1 ms (the clock accuracy is between 0.5 ms and 15 ms).
2010-08-05Issue #9079: Added _PyTime_gettimeofday(_PyTime_timeval *tp) to C APIAlexander Belopolsky-0/+60
exposed in Python.h. This function is similar to POSIX gettimeofday(struct timeval *tp), but available on platforms without gettimeofday().