File tree Expand file tree Collapse file tree 1 file changed +21
-24
lines changed Expand file tree Collapse file tree 1 file changed +21
-24
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,27 @@ cdef class _Timestamp(ABCTimestamp):
240
240
241
241
@property
242
242
def value (self ) -> int:
243
+ """
244
+ Return the value of the Timestamp.
245
+
246
+ Returns
247
+ -------
248
+ int
249
+ The integer representation of the Timestamp object in nanoseconds
250
+ since the Unix epoch (1970-01-01 00:00:00 UTC ).
251
+
252
+ See Also
253
+ --------
254
+ Timestamp.second : Return the second of the Timestamp.
255
+ Timestamp.minute : Return the minute of the Timestamp.
256
+
257
+ Examples
258
+ --------
259
+ >>> ts = pd.Timestamp(" 2024-08-31 16:16:30" )
260
+ >>> ts.value
261
+ 1725120990000000000
262
+ """
263
+
243
264
try:
244
265
return convert_reso(self._value , self._creso , NPY_FR_ns , False )
245
266
except OverflowError:
@@ -1169,30 +1190,6 @@ cdef class _Timestamp(ABCTimestamp):
1169
1190
"""
1170
1191
return super().nanosecond
1171
1192
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
-
1196
1193
@property
1197
1194
def week(self) -> int:
1198
1195
"""
You can’t perform that action at this time.
0 commit comments