Add ns accurate times in os.stat_result (#686)

This commit is contained in:
jgarvin
2016-11-12 19:20:00 -06:00
committed by Guido van Rossum
parent c4125739e5
commit 88350e7f47

View File

@@ -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: ...