File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1013,6 +1013,23 @@ class NaTType(_NaT):
1013
1013
"""
1014
1014
Return POSIX timestamp as float.
1015
1015
1016
+ This method converts the `Timestamp` object to a POSIX timestamp, which is
1017
+ the number of seconds since the Unix epoch (January 1, 1970). The returned
1018
+ value is a floating-point number, where the integer part represents the
1019
+ seconds, and the fractional part represents the microseconds.
1020
+
1021
+ Returns
1022
+ -------
1023
+ float
1024
+ The POSIX timestamp representation of the `Timestamp` object.
1025
+
1026
+ See Also
1027
+ --------
1028
+ Timestamp.fromtimestamp : Construct a `Timestamp` from a POSIX timestamp.
1029
+ datetime.datetime.timestamp : Equivalent method from the `datetime` module.
1030
+ Timestamp.to_pydatetime : Convert the `Timestamp` to a `datetime` object.
1031
+ Timestamp.to_datetime64 : Converts `Timestamp` to `numpy.datetime64`.
1032
+
1016
1033
Examples
1017
1034
--------
1018
1035
>>> ts = pd.Timestamp('2020-03-14T15:32:52.192548')
You can’t perform that action at this time.
0 commit comments