@@ -251,6 +251,13 @@ cdef class _NaT(datetime):
251
251
The copy parameter is available here only for compatibility. Its value
252
252
will not affect the return value.
253
253
254
+ Parameters
255
+ ----------
256
+ dtype : numpy.dtype , default None
257
+ Must be None. Otherwise , a ValueError is raised.
258
+ copy : bool , default False
259
+ Must be False. Otherwise , a ValueError is raised.
260
+
254
261
Returns
255
262
-------
256
263
numpy.datetime64 or numpy.timedelta64
@@ -1456,23 +1463,44 @@ default 'raise'
1456
1463
"""
1457
1464
Implements datetime.replace, handles nanoseconds.
1458
1465
1466
+ Returns a new timestamp with the same attributes,
1467
+ except for those given new value.
1468
+
1459
1469
Parameters
1460
1470
----------
1461
1471
year : int, optional
1472
+ New year value.
1462
1473
month : int, optional
1474
+ New month value.
1463
1475
day : int, optional
1476
+ New day value.
1464
1477
hour : int, optional
1478
+ New hour value.
1465
1479
minute : int, optional
1480
+ New minute value.
1466
1481
second : int, optional
1482
+ New second value.
1467
1483
microsecond : int, optional
1484
+ New microsecond value.
1468
1485
nanosecond : int, optional
1486
+ New nanosecond value.
1469
1487
tzinfo : tz-convertible, optional
1488
+ New tzinfo value.
1470
1489
fold : int, optional
1490
+ New fold value.
1471
1491
1472
1492
Returns
1473
1493
-------
1474
1494
Timestamp with fields replaced
1475
1495
1496
+ See Also
1497
+ --------
1498
+ Timestamp.normalize : Normalize the Timestamp to midnight,
1499
+ preserving tz information.
1500
+ Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
1501
+ Timestamp.tz_localize : Localize the Timestamp to a timezone.
1502
+ datetime.datetime.replace : Return a new datetime with replaced attributes.
1503
+
1476
1504
Examples
1477
1505
--------
1478
1506
Create a timestamp object:
0 commit comments