File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
244
244
-i " pandas.Timestamp.month_name SA01" \
245
245
-i " pandas.Timestamp.nanosecond GL08" \
246
246
-i " pandas.Timestamp.normalize SA01" \
247
- -i " pandas.Timestamp.now SA01" \
248
247
-i " pandas.Timestamp.quarter SA01" \
249
248
-i " pandas.Timestamp.replace PR07,SA01" \
250
249
-i " pandas.Timestamp.resolution PR02" \
Original file line number Diff line number Diff line change @@ -957,11 +957,21 @@ class NaTType(_NaT):
957
957
"""
958
958
Return new Timestamp object representing current time local to tz.
959
959
960
+ This method returns a new `Timestamp` object that represents the current time.
961
+ If a timezone is provided, the current time will be localized to that timezone.
962
+ Otherwise, it returns the current local time.
963
+
960
964
Parameters
961
965
----------
962
966
tz : str or timezone object, default None
963
967
Timezone to localize to.
964
968
969
+ See Also
970
+ --------
971
+ to_datetime : Convert argument to datetime.
972
+ Timestamp.utcnow : Return a new Timestamp representing UTC day and time.
973
+ Timestamp.today : Return the current time in the local timezone.
974
+
965
975
Examples
966
976
--------
967
977
>>> pd.Timestamp.now() # doctest: +SKIP
Original file line number Diff line number Diff line change @@ -1465,11 +1465,21 @@ class Timestamp(_Timestamp):
1465
1465
"""
1466
1466
Return new Timestamp object representing current time local to tz.
1467
1467
1468
+ This method returns a new `Timestamp` object that represents the current time.
1469
+ If a timezone is provided, the current time will be localized to that timezone.
1470
+ Otherwise, it returns the current local time.
1471
+
1468
1472
Parameters
1469
1473
----------
1470
1474
tz : str or timezone object, default None
1471
1475
Timezone to localize to.
1472
1476
1477
+ See Also
1478
+ --------
1479
+ to_datetime : Convert argument to datetime.
1480
+ Timestamp.utcnow : Return a new Timestamp representing UTC day and time.
1481
+ Timestamp.today : Return the current time in the local timezone.
1482
+
1473
1483
Examples
1474
1484
--------
1475
1485
>>> pd.Timestamp.now() # doctest: +SKIP
You can’t perform that action at this time.
0 commit comments