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/serialize.py   Buckley(Download)
#this is a mod on the orinal file for some reason it includes its own simplejson files i have ref django!
from django.utils import simplejson
from sketch.helpers.dateformat import utc_timestamp, timestamp
 
class GqlEncoder(simplejson.JSONEncoder):
 
    elif isinstance(obj, datetime.datetime):
      return utc_timestamp(obj)
 
      # return int(time.mktime(datetime.datetime.now().timetuple()))