Back to index

plone3  3.1.7
getEndAsString.py
Go to the documentation of this file.
00001 ##parameters=thisDay, event
00002 
00003 # Returns a string to represent the event
00004 
00005 from DateTime import DateTime
00006 
00007 text = ""
00008 
00009 last_date=DateTime(thisDay.Date()+" 23:59:59")
00010 
00011 if event.end > last_date:
00012   return event.end.aCommon()[:12]
00013 else:
00014   return event.end.TimeMinutes()
00015