Message154873
| Author |
Arfrever |
| Recipients |
Arfrever, gvanrossum, larry, loewis, pitrou, r.david.murray, rosslagerwall, vstinner |
| Date |
2012年03月04日.00:52:28 |
| SpamBayes Score |
0.003466682 |
| Marked as misclassified |
No |
| Message-id |
<1330822349.41.0.820668664025.issue14127@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The following solution might be compatible with Guido's suggestion:
os.stat(path).st_atime_ns -> nanoseconds_since_epoch_as_int
os.stat(path).st_ctime_ns -> nanoseconds_since_epoch_as_int
os.stat(path).st_mtime_ns -> nanoseconds_since_epoch_as_int
atime = os.stat(path).st_atime_ns
mtime = os.stat(path).st_mtime_ns
os.utime(path, (atime, mtime), resolution="ns") |
|