DateTimeOperations Class |
Namespace: TomsToolbox.Essentials
The DateTimeOperations type exposes the following members.
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.
|