Back to index

plone3  3.1.7
getStartAsString.py
Go to the documentation of this file.
00001 ##parameters=thisDay, event
00002 
00003 # Returns a string to represent the start of the event
00004 
00005 from DateTime import DateTime
00006 
00007 first_date=DateTime(thisDay.Date()+" 00:00:00")
00008 
00009 if event.start < first_date:
00010   return event.start.aCommon()[:12]
00011 else:
00012   return event.start.TimeMinutes()