ENH: Added localtime() to MyTime

pull/4/head
Yaroslav Halchenko 13 years ago
parent 5a2d518bf2
commit b6d50c1dea

@ -77,3 +77,9 @@ class MyTime:
return time.gmtime(MyTime.myTime)
gmtime = staticmethod(gmtime)
def localtime(x=None):
if MyTime.myTime == None or x is not None:
return time.localtime(x)
else:
return time.localtime(MyTime.myTime)
localtime = staticmethod(localtime)

Loading…
Cancel
Save