BF: correct scope for datetime.now

pull/368/head
Daniel Black 2013-09-22 21:51:51 +10:00
parent 37de5462be
commit b3cd5ca807
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class MyTime:
#@staticmethod
def now():
if MyTime.myTime is None:
return datetime.now()
return datetime.datetime.now()
else:
return datetime.datetime.fromtimestamp(MyTime.myTime)
now = staticmethod(now)