Message154368
>>> 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. |
|
| 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: <[email protected]> |
| 2012-02-26 16:18:07 | pitrou | link | issue14127 messages |
| 2012-02-26 16:18:06 | pitrou | create | |
|