pandas.Timestamp.utcoffset #

时间戳。utcoffset ( ) #

返回 utc 偏移量。

例子

>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')
>>> ts
Timestamp('2023-01-01 10:00:00+0100', tz='Europe/Brussels')
>>> ts.utcoffset()
datetime.timedelta(seconds=3600)