Skip to content

Commit

Permalink
Add ns accurate times in os.stat_result (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarvin authored and gvanrossum committed Nov 13, 2016
1 parent c412573 commit 88350e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stdlib/3/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

Expand Down

0 comments on commit 88350e7

Please sign in to comment.