[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Assistant class to help with conversions between Java-style and granularity dates and CLR-style DateTime.

The following tables list the members exposed by the DateTimeHelper type.

Public Methods

  NameDescription
Equals (Inherited from Object.)
static memberGetCurrentTimeMillis
Returns the current time in millis

GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
static memberJavaMillisToMillis
Converts milliseconds in Java to milliseconds in CLR

static memberMillisToJavaMillis
Converts millis in CLR to millis in Java

static memberMillisToTicks
Converts milliseconds to ticks

static memberTicksToMillis
Converts ticks to milliseconds

static memberTimeFromMillis
Gets the datetime that matches the number of milliseconds provided. As with TimeInMillis, this is needed to convert from Java datetime granularity to CLR granularity.

static memberTimeInMillis
Gets the number of milliseconds needed to represent the datetime. This is needed to convert from Java datetime granularity (milliseconds) to CLR datetimes.

ToString (Inherited from Object.)

Protected Methods

  NameDescription
Finalize (Inherited from Object.)
MemberwiseClone (Inherited from Object.)