get_timezone_offset#

gwpy.detector.get_timezone_offset(ifo: str, dt: datetime | None = None) float[source]#

Return the offset in seconds between UTC and the given interferometer.

Parameters:
ifostr

Prefix of interferometer, e.g. 'X1'

dtdatetime.datetime, optional

The time at which to calculate the offset. Default is datetime.datetime.now.

Returns:
offsetfloat

The offset in seconds between the timezone of the interferometer and UTC.