Table of Contents

Method MillisecondsFromTimestamp

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

MillisecondsFromTimestamp(DateTimeOffset)

Converts an instant to a timestamp-millis, truncating sub-millisecond ticks.

public static long MillisecondsFromTimestamp(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

The instant; its offset is taken into account.

Returns

long