[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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
static memberGetCurrentTimeMillis
Returns the current time in millis

GetHashCode
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(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
Returns a String that represents the current Object.
(Inherited from Object.)

Protected Methods

  NameDescription
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)