pandas.Timestamp.fromtimestamp#

classmethod Timestamp.fromtimestamp(ts)#

根据 POSIX 时间戳将 timestamp[, tz] 转换为 tz 的本地时间。

Examples

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

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