Beispiel #1
0
def iso_date(value):
  """
  @todo convert to python native
  """
  df = DateFormat(value)
  return df.format('c')
Beispiel #2
0
def date_format(value, format_string):
  "Helper function for PHP style date formatting"
  df = DateFormat(value)
  return df.format(format_string)
Beispiel #3
0
def short_date(value):
  df = DateFormat(value)
  return df.format('jS M Y')