Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions library/core/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ impl Duration {

/// Creates a new `Duration` from the specified number of hours.
///
/// For this method, one hour is defined as 60 minutes, or 3,600 seconds.
///
/// # Panics
///
/// Panics if the given number of hours overflows the `Duration` size.
Expand Down Expand Up @@ -429,6 +431,8 @@ impl Duration {

/// Creates a new `Duration` from the specified number of minutes.
///
/// For this method, one minute is defined as 60 seconds.
///
/// # Panics
///
/// Panics if the given number of minutes overflows the `Duration` size.
Expand Down
Loading