File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1256,11 +1256,13 @@ class NaTType(_NaT):
12561256
12571257 now = _make_nat_func(
12581258 " now" ,
1259- """
1259+ """
12601260 Return new Timestamp object representing current time local to tz.
12611261
12621262 This method returns a new `Timestamp` object that represents the current time.
1263- If a timezone is provided, the current time will be localized to that timezone.
1263+ If a timezone is provided, either through a timezone object or an IANA
1264+ standard timezone identifier, the current time will be localized to that
1265+ timezone.
12641266 Otherwise, it returns the current local time.
12651267
12661268 Parameters
@@ -1279,6 +1281,12 @@ class NaTType(_NaT):
12791281 >>> pd.Timestamp.now() # doctest: +SKIP
12801282 Timestamp('2020-11-16 22:06:16.378782')
12811283
1284+ If you want a specific timezone, in this case 'Brazil/East':
1285+
1286+ >>> pd.Timestamp.now('Brazil/East')
1287+ Timestamp('2025-11-11 22:17:59.609943-03:00)
1288+
1289+
12821290 Analogous for ``pd.NaT``:
12831291
12841292 >>> pd.NaT.now()
You can’t perform that action at this time.
0 commit comments