Skip to content

Commit a89bb53

Browse files
committed
Revert "synced nat.now doc"
This reverts commit c566e7c.
1 parent c566e7c commit a89bb53

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pandas/_libs/tslibs/nattype.pyx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)