File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
130
130
-i " pandas.Timestamp.min PR02" \
131
131
-i " pandas.Timestamp.resolution PR02" \
132
132
-i " pandas.Timestamp.tzinfo GL08" \
133
- -i " pandas.Timestamp.value GL08" \
134
133
-i " pandas.api.extensions.ExtensionArray.interpolate PR01,SA01" \
135
134
-i " pandas.api.interchange.from_dataframe RT03,SA01" \
136
135
-i " pandas.api.types.is_bool PR01,SA01" \
Original file line number Diff line number Diff line change @@ -1169,6 +1169,30 @@ cdef class _Timestamp(ABCTimestamp):
1169
1169
"""
1170
1170
return super().nanosecond
1171
1171
1172
+ @property
1173
+ def value(self) -> int:
1174
+ """
1175
+ Return the value of the Timestamp.
1176
+
1177
+ Returns
1178
+ -------
1179
+ int
1180
+ The integer representation of the Timestamp object in nanoseconds
1181
+ since the Unix epoch (1970 - 01 - 01 00 :00 :00 UTC).
1182
+
1183
+ See Also
1184
+ --------
1185
+ Timestamp.second : Return the second of the Timestamp.
1186
+ Timestamp.minute : Return the minute of the Timestamp.
1187
+
1188
+ Examples
1189
+ --------
1190
+ >>> ts = pd.Timestamp(" 2024-08-31 16:16:30" )
1191
+ >>> ts.value
1192
+ 1725120990000000000
1193
+ """
1194
+ return super().value
1195
+
1172
1196
@property
1173
1197
def week(self) -> int:
1174
1198
"""
You can’t perform that action at this time.
0 commit comments