Show / Hide Table of Contents

# Interface ITimestampConverter

Converts System.DateTime values to Java Timestamp and back.

###### Namespace: Apache.Ignite.Core.Binary

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public interface ITimestampConverter

### Methods

#### FromJavaTicks(Int64, Int32)

Converts date from Java ticks.

##### Declaration

    DateTime FromJavaTicks(long high, int low)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Int64 | high | High part (milliseconds).
System.Int32 | low | Low part (nanoseconds)

##### Returns

Type | Description
--- | ---
System.DateTime |

#### ToJavaTicks(DateTime, out Int64, out Int32)

Converts date to Java ticks.

##### Declaration

    void ToJavaTicks(DateTime date, out long high, out int low)

##### Parameters

Type | Name | Description
--- | --- | ---
System.DateTime | date | Date
System.Int64 | high | High part (milliseconds).
System.Int32 | low | Low part (nanoseconds)