mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 07:21:41 +00:00
Fix wrong amount of micro/milliseconds
This commit is contained in:
parent
361b9fc61e
commit
c5c22a357d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user