Message154368
| Author |
pitrou |
| Recipients |
gvanrossum, larry, loewis, pitrou, r.david.murray |
| Date |
2012年02月26日.16:18:06 |
| SpamBayes Score |
0.004683707 |
| Marked as misclassified |
No |
| Message-id |
<1330273087.86.0.111793958825.issue14127@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> st = os.stat('LICENSE')
>>> st.st_mtime
1330108216.7984242
>>> st.st_mtime_frac
0.798424152
>>> tup = st.st_mtime, st.st_mtime_frac
>>> os.utime('LICENSE', (tup, tup))
Of course, the fact that utime takes a (atime, mtime) tuple makes this a bit cumbersome.
When passed a tuple, utime would ignore the fractional part of the first element. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月26日 16:18:08 | pitrou | set | recipients:
+ pitrou, gvanrossum, loewis, larry, r.david.murray |
| 2012年02月26日 16:18:07 | pitrou | set | messageid: <1330273087.86.0.111793958825.issue14127@psf.upfronthosting.co.za> |
| 2012年02月26日 16:18:07 | pitrou | link | issue14127 messages |
| 2012年02月26日 16:18:06 | pitrou | create |
|