Static member | Description |
Full Usage:
DateTimeMath.RoundDownMonths(x, n)
Parameters:
DateTime
-
The date.
n : int
-
The number of months to round down. Must be greater than or equal to 1.
Returns: DateTime
A date <=x, and with a month number which is 1 + k*n. If the resulting month is <1, the year number is decreased accordingly.
|
Rounds 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.
|
|
|
Full Usage:
DateTimeMath.RoundDownToStartOfDay(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundDownToStartOfHour(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundDownToStartOfMinute(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundDownToStartOfMonth(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundDownToStartOfSecond(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundDownToStartOfYear(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
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.
The time zone information of the return value is copied from x.
|
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.
|
|
Rounds 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.
|
Full Usage:
DateTimeMath.RoundUpMonths(x, n)
Parameters:
DateTime
-
The date.
n : int
-
The number of months to round up. Must be greater than or equal to 1.
Returns: DateTime
A date >=x, and with a month number which is 1 + k*n. If the resulting month is >12, the year number is increased accordingly.
|
Rounds 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.
|
|
|
Full Usage:
DateTimeMath.RoundUpToStartOfDay(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of a day. If x designates exactly the start of a day, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundUpToStartOfHour(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of an hour. If x designates exactly the start of an hour, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundUpToStartOfMinute(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of a minute. If x designates exactly the start of a minute, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundUpToStartOfMonth(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of a month. If x designates exactly the start of a month, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundUpToStartOfSecond(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of a second. If x designates exactly the start of a second, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
Full Usage:
DateTimeMath.RoundUpToStartOfYear(x)
Parameters:
DateTime
-
The date argument.
Returns: DateTime
The date x is rounded up to the next start of a year. If x designates exactly the start of a year, then x is returned unchanged.
The time zone information of the return value is copied from x.
|
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.
|
|
Rounds 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.
|