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):
240240
241241 @property
242242 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+
243264 try:
244265 return convert_reso(self._value , self._creso , NPY_FR_ns , False )
245266 except OverflowError:
@@ -1169,30 +1190,6 @@ cdef class _Timestamp(ABCTimestamp):
11691190 """
11701191 return super().nanosecond
11711192
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-
11961193 @property
11971194 def week(self) -> int:
11981195 """
You can’t perform that action at this time.
0 commit comments