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 @@ -345,6 +345,8 @@ impl Duration {

/// Creates a new `Duration` from the specified number of weeks.
///
/// For this method, one week is defined as 7 days, or 604,800 seconds.
///
/// # Panics
///
/// Panics if the given number of weeks overflows the `Duration` size.
Expand Down Expand Up @@ -373,6 +375,8 @@ impl Duration {

/// Creates a new `Duration` from the specified number of days.
///
/// For this method, one day is defined as 24 hours, or 86,400 seconds.
///
/// # Panics
///
/// Panics if the given number of days overflows the `Duration` size.
Expand Down
Loading