From c5c22a357da0423156b21761c5bffc77b99e3aa9 Mon Sep 17 00:00:00 2001 From: Tilman Date: Thu, 8 May 2025 10:39:42 +0200 Subject: [PATCH] Fix wrong amount of micro/milliseconds --- src/naive/date/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/naive/date/mod.rs b/src/naive/date/mod.rs index 62efd454..bb1adfd7 100644 --- a/src/naive/date/mod.rs +++ b/src/naive/date/mod.rs @@ -755,7 +755,7 @@ impl NaiveDate { /// Makes a new `NaiveDateTime` from the current date, hour, minute, second and millisecond. /// - /// The millisecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second]( + /// The millisecond part is allowed to exceed 1,000 in order to represent a [leap second]( /// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`. /// /// # Panics @@ -770,7 +770,7 @@ impl NaiveDate { /// Makes a new `NaiveDateTime` from the current date, hour, minute, second and millisecond. /// - /// The millisecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second]( + /// The millisecond part is allowed to exceed 1,000 in order to represent a [leap second]( /// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`. /// /// # Errors @@ -805,7 +805,7 @@ impl NaiveDate { /// Makes a new `NaiveDateTime` from the current date, hour, minute, second and microsecond. /// - /// The microsecond part is allowed to exceed 1,000,000,000 in order to represent a [leap second]( + /// The microsecond part is allowed to exceed 1,000,000 in order to represent a [leap second]( /// ./struct.NaiveTime.html#leap-second-handling), but only when `sec == 59`. /// /// # Panics