| DateTimeOperations Class |
Inheritance Hierarchy Namespace: TomsToolbox.EssentialsAssembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static class DateTimeOperations
<ExtensionAttribute>
Public NotInheritable Class DateTimeOperations
The DateTimeOperations type exposes the following members.
Methods | Name | Description |
---|
| AddDays |
Adds the specified number of days to the value of this instance.
|
| AddHours |
Adds the specified number of hours to the value of this instance.
|
| AddMinutes |
Adds the specified number of minutes to the value of this instance.
|
| AddSeconds |
Adds the specified number of seconds to the value of this instance.
|
| GetDaysOfWeek |
Gets the days of a week starting with the cultures first day of week.
|
| Max(DateTime, DateTime) |
Returns the larger of two dates.
|
| Max(TimeSpan, TimeSpan) |
Returns the larger of two time spans.
|
| Min(DateTime, DateTime) |
Returns the smaller of two dates.
|
| Min(TimeSpan, TimeSpan) |
Returns the smaller of two time spans.
|
| MultipliedWith |
Multiplies the time span with the specified factor.
|
| RoundToDays(DateTime) |
Rounds the time span so it does not contain any fractional days.
|
| RoundToDays(DateTime, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional days.
|
| RoundToHours(DateTime) |
Rounds the time span so it does not contain any fractional hours.
|
| RoundToHours(TimeSpan) |
Rounds the time span so it does not contain any fractional hours.
|
| RoundToHours(DateTime, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional hours.
|
| RoundToHours(TimeSpan, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional hours.
|
| RoundToMinutes(DateTime) |
Rounds the time span so it does not contain any fractional minutes.
|
| RoundToMinutes(TimeSpan) |
Rounds the time span so it does not contain any fractional minutes.
|
| RoundToMinutes(DateTime, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional minutes.
|
| RoundToMinutes(TimeSpan, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional minutes.
|
| RoundToSeconds(DateTime) |
Rounds the time span so it does not contain any fractional seconds.
|
| RoundToSeconds(TimeSpan) |
Rounds the time span so it does not contain any fractional seconds.
|
| RoundToSeconds(DateTime, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional seconds.
|
| RoundToSeconds(TimeSpan, FuncDouble, Double) |
Rounds the time span so it does not contain any fractional seconds.
|
TopSee Also