def _millis_from_datetime(value):
 if (value is not None):
  return _millis(value)

def _millis_from_datetime ( value ) : if ( value is not None ) : return _millis ( value )
convert non-none datetime to timestamp .