pandas.Timestamp.timestamp — pandas 3.0.0rc0+33.g1fd184de2a documentation (original) (raw)
Timestamp.timestamp()#
Return POSIX timestamp as float.
This method converts the Timestamp object to a POSIX timestamp, which is the number of seconds since the Unix epoch (January 1, 1970). The returned value is a floating-point number, where the integer part represents the seconds, and the fractional part represents the microseconds.
Returns:
float
The POSIX timestamp representation of the Timestamp object.
Examples
ts = pd.Timestamp('2020-03-14T15:32:52.192548') ts.timestamp() 1584199972.192548