DateTimeOffsetExtensions Class

Extends the DateTimeOffset class.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public static class DateTimeOffsetExtensions
Inheritance
Object    DateTimeOffsetExtensions

Properties

EpochDayZero Gets the Inner Drive epochal day 0, which is 2001-01-01T00:00:00+0000.

Methods

DayOfEpoch Returns the Inner Drive epochal day, which is the whole day number counting from 2001-01-01T00:00:00+0000 = 0.
FromJulianDay Returns a DateTimeOffset given a particular Julian day number.
MonthOfEpoch Returns the Inner Drive epochal month, which is the whole month number counting from January 2001 = 0.
MonthsBetween Returns the total number of months between two DateTimeOffset values.
ParseTime Parses textual time input into a DateTime.
QuarterOfYear Determines which calendar quarter this DateTimeOffset is in.
ToJulianDay Returns the Julian day number for a given DateTimeOffset.
WeekOfEpoch Returns the Inner Drive epochal week, which is the whole week number counting from 2001-01-01T00:00:00+0000 = 0.
WeekOfYear Returns the week number of this DateTimeOffset.
YearsBetween Returns the total number of years between this DateTimeOffset and another DateTimeOffset.

Fields

MillenniumOffset Gets the Julian day number of 2001-01-01T12:00:00. Used in ToJulianDay(DateTimeOffset).

See Also