Click or drag to resize

DateTimeMath Class

[Missing <summary> documentation for "T:Altaxo.Calc.DateTimeMath"]

Inheritance Hierarchy
SystemObject
  Altaxo.CalcDateTimeMath

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class DateTimeMath

The DateTimeMath type exposes the following members.

Methods
 NameDescription
Public methodStatic memberRoundDownMonthsRounds down the date so that it starts at the first day of a month and is less than or equal to x. The resulting month number then is 1 + k*n, with k being an integer.
Public methodStatic memberRoundDownSpan 
Public methodStatic memberRoundDownToStartOfDay The date x is rounded down to the start of a day. If x designates exactly the start of a day, then x is returned unchanged.
Public methodStatic memberRoundDownToStartOfHour The date x is rounded down to the start of an hour. If x designates exactly the start of an hour, then x is returned unchanged.
Public methodStatic memberRoundDownToStartOfMinute The date x is rounded down to the start of a minute. If x designates exactly the start of a minute, then x is returned unchanged.
Public methodStatic memberRoundDownToStartOfMonth The date x is rounded down to the start of a month. If x designates exactly the start of a month, then x is returned unchanged.
Public methodStatic memberRoundDownToStartOfSecond The date x is rounded down to the start of a second. If x designates exactly the start of a second, then x is returned unchanged.
Public methodStatic memberRoundDownToStartOfYear The date x is rounded down to the start of a year. If x designates exactly the start of a year, then x is returned unchanged.
Public methodStatic memberRoundDownYearsRounds down the date so that it starts at the first day of a year and is less than or equal to x. The resulting year number then is k*n, with k being an integer.
Public methodStatic memberRoundUpMonthsRounds up the date so that it starts at the first day of a month and is greater than or equal to x. The resulting month number then is 1 + k*n, with k being an integer.
Public methodStatic memberRoundUpSpan 
Public methodStatic memberRoundUpToStartOfDay The date x is rounded up to the start of a day. If x designates exactly the start of a day, then x is returned unchanged.
Public methodStatic memberRoundUpToStartOfHour The date x is rounded up to the start of an hour. If x designates exactly the start of an hour, then x is returned unchanged.
Public methodStatic memberRoundUpToStartOfMinute The date x is rounded up to the start of a minute. If x designates exactly the start of a minute, then x is returned unchanged.
Public methodStatic memberRoundUpToStartOfMonth The date x is rounded up to the start of a month. If x designates exactly the start of a month, then x is returned unchanged.
Public methodStatic memberRoundUpToStartOfSecond The date x is rounded up to the start of a second. If x designates exactly the start of a second , then x is returned unchanged.
Public methodStatic memberRoundUpToStartOfYear The date x is rounded up to the start of a year. If x designates exactly the start of a year, then x is returned unchanged.
Public methodStatic memberRoundUpYearsRounds up the date so that it starts at the first day of a year and is greater than or equal to x. The resulting year number then is k*n, with k being an integer.
Top
See Also