[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
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetCurrentTimeMillis |
Returns the current time in millis
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | JavaMillisToMillis |
Converts milliseconds in Java to milliseconds in CLR
|
![]() ![]() | MillisToJavaMillis |
Converts millis in CLR to millis in Java
|
![]() ![]() | MillisToTicks |
Converts milliseconds to ticks
|
![]() ![]() | TicksToMillis |
Converts ticks to milliseconds
|
![]() ![]() | TimeFromMillis |
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.
|
![]() ![]() | TimeInMillis |
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
Name | Description | |
---|---|---|
![]() | Finalize | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
Public Fields
Name | Description | |
---|---|---|
![]() ![]() | MILLIS_PER_TICK |
Number of milliseconds per tick
|
Public Constructors
Name | Description | |
---|---|---|
![]() | DateTimeHelperNew |
Public Properties
Name | Description | |
---|---|---|
![]() ![]() | CurrentTimeMillis |
Returns the current time in millis
|