- API reference
- pandas arrays, scalars, and data types
- pandas.Times...
pandas.Timestamp.timetuple#
- Timestamp.timetuple()#
Return time tuple, compatible with time.localtime().
Examples
>>>ts=pd.Timestamp('2023-01-01 10:00:00')>>>tsTimestamp('2023-01-01 10:00:00')>>>ts.timetuple()time.struct_time(tm_year=2023, tm_mon=1, tm_mday=1,tm_hour=10, tm_min=0, tm_sec=0, tm_wday=6, tm_yday=1, tm_isdst=-1)
On this page