Skip to content

Commit 404f81e

Browse files
committed
stub (m|a)time_ns stat accessors
1 parent 7b228fc commit 404f81e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/lib-graalpython/posix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"st_uid", "st_gid", "st_size", "st_atime",
4747
"st_mtime", "st_ctime"
4848
])
49+
stat_result.st_atime_ns = property(lambda s: int(s.st_atime * 1000))
50+
stat_result.st_mtime_ns = property(lambda s: int(s.st_mtime * 1000))
51+
4952
old_stat = stat
5053

5154

0 commit comments

Comments
 (0)