pandas.Timestamp.dst #
- 时间戳。目标时间( ) #
返回夏令时 (DST) 调整。
例子
>>> ts = pd.Timestamp('2000-06-01 00:00:00', tz='Europe/Brussels') >>> ts Timestamp('2000-06-01 00:00:00+0200', tz='Europe/Brussels') >>> ts.dst() datetime.timedelta(seconds=3600)
返回夏令时 (DST) 调整。
例子
>>> ts = pd.Timestamp('2000-06-01 00:00:00', tz='Europe/Brussels')
>>> ts
Timestamp('2000-06-01 00:00:00+0200', tz='Europe/Brussels')
>>> ts.dst()
datetime.timedelta(seconds=3600)