Click or drag to resize

DateTimeMathRoundUpSpan Method

Rounds the date d up to the next multiple of span, using a span-dependent origin.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static DateTime RoundUpSpan(
	DateTime d,
	TimeSpan span
)

Parameters

d  DateTime
The date to round.
span  TimeSpan
The rounding span.

Return Value

DateTime
A date that is greater than or equal to d, and whose offset from the chosen origin is a multiple of span.
See Also