(timestamp)
return timegm(dtime.timetuple())
Convert TIMESTAMP_FORMAT time to seconds.
Convert TIMESTAMP_FORMAT time to seconds.
Convert TIMESTAMP_FORMAT time to seconds .
def time_to_seconds(timestamp):
    """Convert TIMESTAMP_FORMAT time to seconds."""
    try:
        dtime = dateutil.parser.isoparse(timestamp)
    except ValueError:
        _LOGGER.error("Incorrect timestamp format for conversion: %s.", timestamp)
        return False
    return timegm(dtime.timetuple())
def time_to_seconds ( timestamp ) : try : dtime = dateutil . parser . isoparse ( timestamp ) except ValueError : _LOGGER . error ( "Incorrect timestamp format for conversion: %s." , timestamp ) return False return timegm ( dtime . timetuple ( ) )