Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/b/u/Buckley-HEAD/sketch/helpers/dateformat.py   Buckley(Download)
 
import time
 
from sketch.util.dateformat import DateFormat, TimeFormat, datetime_to_timestamp, utc_mktime
from sketch.util.timesince import timesince as ts, timeuntil as tu
def time_format(value, format_string):
  "Helper function for PHP style time formatting"
  tf = TimeFormat(value)
  return tf.format(format_string)