[IronPython] os.stat doesn't return time values in seconds
dinov at exchange.microsoft.com
Tue May 2 08:21:09 PDT 2006
Thanks for the bug report, we'll fix this for beta 7.
Do you want to help develop Dynamic languages on CLR? (http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Tuesday, May 02, 2006 2:55 AM
To: Discussion of IronPython
Subject: [IronPython] os.stat doesn't return time values in seconds
import os, time
name = "newfile"
f = open(name, "w")
t = time.time()
mt = os.stat(name).st_mtime
print t, mt
Expected result: t and mt doesn't differ by more than 1.
Attached patch fixes the problem.
More information about the users