DateTimeMathRoundDownSpan Method |
Rounds the date d down to the previous multiple of span, using a span-dependent origin.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static DateTime RoundDownSpan(
DateTime d,
TimeSpan span
)
Parameters
- d DateTime
- The date to round.
- span TimeSpan
- The rounding span.
Return Value
DateTime
A date that is less than or equal to
d, and whose offset from the chosen origin is a multiple of
span.
See Also