parameters: (self, value)
docstring: Return epoch time for a datetime object or ``None``
docstring_summary: Return epoch time for a datetime object or ``None``
docstring_tokens: Return epoch time for a datetime object or None
function: def to_representation(self, value):
          """ Return epoch time for a datetime object or ``None``"""
          try:
              return int(format(value, 'U'))*1000
          except (AttributeError, TypeError):
              return None
function_tokens: def to_representation ( self , value ) : try : return int ( format ( value , 'U' ) ) * 1000 except ( AttributeError , TypeError ) : return None