pandas.Timestamp.fromtimestamp#

classmethod Timestamp.fromtimestamp(ts)#

转换时间戳 [, tz] 从POSIX时间戳转换为TZ的本地时间。

示例

>>> pd.Timestamp.fromtimestamp(1584199972)
Timestamp('2020-03-14 15:32:52')

请注意,输出可能会根据您的当地时间而变化。