Back to index

plone3  3.1.7
toLocalizedTime.py
Go to the documentation of this file.
00001 ## Script (Python) "toLocalizedTime"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=time=None, long_format=None
00008 ##title=
00009 ##
00010 # The time parameter must be either a string that is suitable for
00011 # initializing a DateTime or a DateTime object.
00012 # Returns a localized string.
00013 return context.restrictedTraverse('@@plone').toLocalizedTime(time, long_format)