TimeSpanExtensions Class
The extension methods for working with
TimeSpan objects.
Namespace: MoreDateTime.ExtensionsAssembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
public static class TimeSpanExtensions
You do not need to declare an instance of a static class in order to access its members.
No code example is currently available or this language may not be supported.
- Inheritance
- Object TimeSpanExtensions
IsNegative
|
Returns if the value is negative
|
IsPositive
|
Returns if the value is positive
|
RoundTo
|
Rounds the TimeSpan mathematically to the next unit of the given precision.
|
RoundToDay
|
Rounds the TimeSpan mathematically to the day
|
RoundToHour
|
Rounds the TimeSpan mathematically to the Hour
|
RoundToMinute
|
Rounds the TimeSpan mathematically to the Minute
|
RoundToSecond
|
Rounds the TimeSpan mathematically to the Second
|
TruncateTo
|
Truncates the precision of a TimeSpan object to the given precision
|
TruncateToDay
|
Truncates the precision of a DateTime object to the year
|
TruncateToHour
|
Truncates the precision of a TimeSpan object to the hour
|
TruncateToMinute
|
Truncates the precision of a TimeSpan object to the minute
|
TruncateToSecond
|
Truncates the precision of a TimeSpan object to the second
|