[IronPython] os.stat doesn't return time values in seconds
Dino Viehland
dinov at exchange.microsoft.com
Tue May 2 17:21:09 CEST 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)
-----Original Message-----
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
# test.py
import os, time
name = "newfile"
f = open(name, "w")
f.close()
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.
Seo Sanghyeon
More information about the Ironpython-users
mailing list