def _datetime_to_rfc3339(value, ignore_zone=True):
 if ((not ignore_zone) and (value.tzinfo is not None)):
  value = (value.replace(tzinfo=None) - value.utcoffset())
 return value.strftime(_RFC3339_MICROS)

def _datetime_to_rfc3339 ( value , ignore_zone = True ) : if ( ( not ignore_zone ) and ( value . tzinfo is not None ) ) : value = ( value . replace ( tzinfo = None ) - value . utcoffset ( ) ) return value . strftime ( _RFC3339_MICROS )
convert a timestamp to a string .