mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add ns accurate times in os.stat_result (#686)
This commit is contained in:
committed by
Guido van Rossum
parent
c4125739e5
commit
88350e7f47
@@ -138,6 +138,12 @@ class stat_result:
|
||||
st_ctime = 0.0 # platform dependent (time of most recent metadata change
|
||||
# on Unix, or the time of creation on Windows)
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
st_atime_ns = 0 # time of most recent access, in nanoseconds
|
||||
st_mtime_ns = 0 # time of most recent content modification in nanoseconds
|
||||
st_ctime_ns = 0 # platform dependent (time of most recent metadata change
|
||||
# on Unix, or the time of creation on Windows) in nanoseconds
|
||||
|
||||
# not documented
|
||||
def __init__(self, tuple: Tuple[int, ...]) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user