pandas.Timestamp.utcfromtimestamp
- classmethodTimestamp.utcfromtimestamp(ts)
-
Создает объект datetime с часовым поясом UTC из временной метки POSIX.
Примечания
Поведение Timestamp.utcfromtimestamp отличается от datetime.utcfromtimestamp тем, что возвращается объект с часовым поясом.
Примеры
>>> pd.Timestamp.utcfromtimestamp(1584199972) Timestamp('2020-03-14 15:32:52+0000', tz='UTC')
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Timestamp.utcfromtimestamp.html