File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1072,13 +1072,8 @@ class NaTType(_NaT):
10721072
10731073 Examples
10741074 --------
1075- >>> pd.Timestamp.now() # doctest: +SKIP
1076- Timestamp('2020-11-16 22:06:16.378782')
1077-
1078- If you want a specific timezone, in this case 'Brazil/East':
1079-
1080- >>> pd.Timestamp.now('Brazil/East') # doctest: +SKIP
1081- Timestamp('2025-11-11 22:17:59.609943-03:00)
1075+ >>> pd.Timestamp.utcnow() # doctest: +SKIP
1076+ Timestamp('2020-11-16 22:50:18.092888+0000', tz='UTC')
10821077 """ ,
10831078 )
10841079
Original file line number Diff line number Diff line change @@ -1940,9 +1940,10 @@ class Timestamp(_Timestamp):
19401940
19411941 If you want a specific timezone, in this case ' Brazil/East' :
19421942
1943- >>> pd.Timestamp.now(' Brazil/East' ) # doctest: +SKIP
1943+ >>> pd.Timestamp.now(' Brazil/East' )
19441944 Timestamp(' 2025-11-11 22:17:59.609943-03:00)
19451945
1946+
19461947 Analogous for ``pd.NaT``:
19471948
19481949 >>> pd.NaT.now()
You can’t perform that action at this time.
0 commit comments