Adds methods similar to those found on DateTime to TimeSpan.
More...
|
static TimeSpan | AddDays (this TimeSpan ts, double howMany) |
| Add this many days to the TimeSpan, returning the new value.
|
static TimeSpan | AddHours (this TimeSpan ts, double howMany) |
| Add this many days to the TimeSpan, returning the new value.
|
static TimeSpan | AddMinutes (this TimeSpan ts, double howMany) |
| Add this many days to the TimeSpan, returning the new value.
|
static TimeSpan | AddSeconds (this TimeSpan ts, double howMany) |
| Add this many days to the TimeSpan, returning the new value.
|
static TimeSpan | AddMilliseconds (this TimeSpan ts, double howMany) |
| Add this many days to the TimeSpan, returning the new value.
|
static TimeSpan | TruncateMilliseconds (this TimeSpan timeSpan) |
| Returns a new TimeSpan equal to the input with truncated milliseconds.
|
static TimeSpan | TruncateSeconds (this TimeSpan timeSpan) |
| Returns a new TimeSpan equal to the input with truncated milliseconds.
|
static TimeSpan | TruncateMinutes (this TimeSpan timeSpan) |
| Returns a new TimeSpan equal to the input with truncated milliseconds.
|
static TimeSpan | TruncateHours (this TimeSpan timeSpan) |
| Returns a new TimeSpan equal to the input with truncated milliseconds.
|
Adds methods similar to those found on DateTime to TimeSpan.
◆ AddDays()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.AddDays |
( |
this TimeSpan | ts, |
|
|
double | howMany ) |
|
static |
Add this many days to the TimeSpan, returning the new value.
- Parameters
-
- Returns
◆ AddHours()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.AddHours |
( |
this TimeSpan | ts, |
|
|
double | howMany ) |
|
static |
Add this many days to the TimeSpan, returning the new value.
- Parameters
-
- Returns
◆ AddMilliseconds()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.AddMilliseconds |
( |
this TimeSpan | ts, |
|
|
double | howMany ) |
|
static |
Add this many days to the TimeSpan, returning the new value.
- Parameters
-
- Returns
◆ AddMinutes()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.AddMinutes |
( |
this TimeSpan | ts, |
|
|
double | howMany ) |
|
static |
Add this many days to the TimeSpan, returning the new value.
- Parameters
-
- Returns
◆ AddSeconds()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.AddSeconds |
( |
this TimeSpan | ts, |
|
|
double | howMany ) |
|
static |
Add this many days to the TimeSpan, returning the new value.
- Parameters
-
- Returns
◆ TruncateHours()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.TruncateHours |
( |
this TimeSpan | timeSpan | ) |
|
|
static |
Returns a new TimeSpan equal to the input with truncated milliseconds.
- Parameters
-
- Returns
◆ TruncateMilliseconds()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.TruncateMilliseconds |
( |
this TimeSpan | timeSpan | ) |
|
|
static |
Returns a new TimeSpan equal to the input with truncated milliseconds.
- Parameters
-
- Returns
◆ TruncateMinutes()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.TruncateMinutes |
( |
this TimeSpan | timeSpan | ) |
|
|
static |
Returns a new TimeSpan equal to the input with truncated milliseconds.
- Parameters
-
- Returns
◆ TruncateSeconds()
TimeSpan PeanutButter.Utils.TimeSpanExtensions.TruncateSeconds |
( |
this TimeSpan | timeSpan | ) |
|
|
static |
Returns a new TimeSpan equal to the input with truncated milliseconds.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- source/Utils/PeanutButter.Utils/TimeSpanExtensions.cs