DateTimeExtensions Class

Contains extension methods related to dates and recurrences.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static class DateTimeExtensions
Inheritance
Object  →  DateTimeExtensions

Methods

EndOfDay Returns the end of the day that contains the specified instant.
EndOfHour Returns the end of the hour that contains the specified instant.
EndOfMonth Returns the end of the month that contains the specified instant.
EndOfYear Returns the end of the year that contains the specified instant.
MonthsPerUnit Gets the number of months in the specified unit.
StartOfDay Returns the start of the day that contains the specified instant.
StartOfHour Returns the start of the hour that contains the specified instant.
StartOfMonth Returns the start of the month that contains the specified instant.
StartOfYear Returns the start of the year that contains the specified instant.
TicksPerUnit Gets the number of ticks in the specified unit.

See Also