pandas.Timestamp.timetz#
- Timestamp.timetz()#
Return time object with same time and tzinfo.
This method returns a datetime.time object with the time and tzinfo corresponding to the pd.Timestamp object, ignoring any information about the day/date.
See also
datetime.datetime.timetzReturn datetime.time object with the same time attributes as the datetime object.
datetime.timeClass to represent the time of day, independent of any particular day.
datetime.datetime.tzinfoAttribute of datetime.datetime objects representing the timezone of the datetime object.
Examples
>>> 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.timetz() datetime.time(10, 0, tzinfo=<DstTzInfo 'Europe/Brussels' CET+1:00:00 STD>)