Click or drag to resize

DateTimeOffsetExtensions Class

Extends the DateTimeOffset class.
Inheritance Hierarchy
SystemObject
  InnerDrive.CoreDateTimeOffsetExtensions

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static class DateTimeOffsetExtensions

The DateTimeOffsetExtensions type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberEpochDayZero Gets the Inner Drive epochal day 0, which is 2001-01-01T00:00:00+0000.
Top
Methods
 NameDescription
Public Extension MethodCode exampleDayOfEpoch Returns the Inner Drive epochal day, which is the whole day number counting from 2001-01-01T00:00:00+0000 = 0.
Public methodStatic memberCode exampleFromJulianDay Returns a DateTimeOffset given a particular Julian day number.
Public Extension MethodCode exampleMonthOfEpoch Returns the Inner Drive epochal month, which is the whole month number counting from January 2001 = 0.
Public Extension MethodCode exampleMonthsBetween Returns the total number of months between two DateTimeOffset values.
Public Extension MethodCode exampleParseTime Parses textual time input into a DateTime.
Public Extension MethodCode exampleQuarterOfYear Determines which calendar quarter this DateTimeOffset is in.
Public Extension MethodCode exampleToJulianDay Returns the Julian day number for a given DateTimeOffset.
Public Extension MethodCode exampleWeekOfEpoch Returns the Inner Drive epochal week, which is the whole week number counting from 2001-01-01T00:00:00+0000 = 0.
Public Extension MethodCode exampleWeekOfYear Returns the week number of this DateTimeOffset.
Public Extension MethodCode exampleYearsBetween Returns the total number of years between this DateTimeOffset and another DateTimeOffset.
Top
Fields
 NameDescription
Public fieldStatic memberMillenniumOffset Gets the Julian day number of 2001-01-01T12:00:00. Used in ToJulianDay(DateTimeOffset).
Top
See Also