def getTimestampUTC():
    """getTimestampUTC() -> (ts_sec, ts_usec)

    Returns the current UTC time in seconds and microseconds.
    """
    utc     = datetime.datetime.utcnow()
    ts_sec  = calendar.timegm( utc.timetuple() )
    ts_usec = utc.microsecond
    return ts_sec, ts_usec
def getTimestampUTC ( ) : utc = datetime . datetime . utcnow ( ) ts_sec = calendar . timegm ( utc . timetuple ( ) ) ts_usec = utc . microsecond return ts_sec , ts_usec
getTimestampUTC() -> (ts_sec, ts_usec)

    Returns the current UTC time in seconds and microseconds.