move date/time functions to utils
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3264 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
54f55ac025
commit
fc6fc2b77c
1 changed files with 5 additions and 4 deletions
|
@ -35,6 +35,7 @@ from zope.traversing.api import getParent
|
|||
from zope.traversing.interfaces import IPhysicallyLocatable
|
||||
|
||||
from cybertools.tracking.interfaces import IRun, ITrackingStorage, ITrack
|
||||
from cybertools.util.date import getTimeStamp, timeStamp2ISO
|
||||
|
||||
|
||||
class Run(object):
|
||||
|
@ -297,11 +298,11 @@ class TrackingStorage(BTreeContainer):
|
|||
return self.taskUsers.keys()
|
||||
|
||||
|
||||
def timeStamp2ISO(ts):
|
||||
return time.strftime('%Y-%m-%d %H:%M', time.gmtime(ts))
|
||||
#def timeStamp2ISO(ts):
|
||||
# return time.strftime('%Y-%m-%d %H:%M', time.gmtime(ts))
|
||||
|
||||
def getTimeStamp():
|
||||
return int(time.time())
|
||||
#def getTimeStamp():
|
||||
# return int(time.time())
|
||||
|
||||
|
||||
@adapter(ITrack, IObjectRemovedEvent)
|
||||
|
|
Loading…
Add table
Reference in a new issue