Table of Contents

Galaxon.Core.Time

Classes

XDateOnly

Extension methods for the DateOnly class.

XDateTime

Extension methods for the DateTime class.

XTimeOnly

Extension methods for TimeOnly.

XTimeSpan

Additional members to supplement the TimeSpan class.

Mostly constants. For consistency with TimeSpan, I've used long as the type for any integer constants. For non-integer constants I've used double.

The following constants are already provided by the TimeSpan class and not reproduced here:

  • TicksPerMicrosecond
  • TicksPerMillisecond
  • TicksPerSecond
  • TicksPerMinute
  • TicksPerHour
  • TicksPerDay

NOTE: Any constants or methods for converting between time units will become obsolete with the completion of Galaxon.Quantities.

The word Month, Year, Decade, Century, or Millennium in a constant name usually refers to the average length of that time unit in the Gregorian Calendar.

Enums

ETimeUnit

The time units supported by the conversion functions.

Note: This will be deprecated once Galaxon.Quantities is complete.

In This Article
Back to top Generated by DocFX | Galaxy logo by Freepik