DateOnlyExtensions Class

Definition

Namespace: DataStandardizer.Chronology

Extension methods that convert a DateOnly to the system-time types UnixTime and DosDateTime.

public static class DateOnlyExtensions

Remarks

This class and its members require the net10.0 build (they depend on DateOnly) and are not available on the .NET Standard targets. The whole class is gated behind #if NET6_0_OR_GREATER.

Methods

Extension

Method Extends Returns Notes
ToDosDateTime() DateOnly DosDateTime (net10.0 only)
ToUnixTime() DateOnly UnixTime (net10.0 only) Time of day taken as midnight.

Applies to

Available only on net10.0. Not available on netstandard1.0 or netstandard2.0 (requires DateOnly).

See also


This site uses Just the Docs, a documentation theme for Jekyll.