This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:08pitrousetrecipients: + pitrou, gvanrossum, loewis, larry, r.david.murray
2012-02-26 16:18:07pitrousetmessageid: <1330273087.86.0.111793958825.issue14127@psf.upfronthosting.co.za>
2012-02-26 16:18:07pitroulinkissue14127 messages
2012-02-26 16:18:06pitroucreate