C# Class FluentCassandra.TimestampHelper

Exibir arquivo Open project: nativex/fluentcassandra Class Usage Examples

Public Properties

Property Type Description
MaxUnixMicroseconds long
MaxUnixMilliseconds long
MaxUnixSeconds long
UnixStart DateTimeOffset
UtcNow Func

Public Methods

Method Description
FromCassandraTimestamp ( long ts ) : DateTimeOffset
ToCassandraTimestamp ( this dt ) : long

Private Methods

Method Description
TimestampHelper ( ) : System

Method Details

FromCassandraTimestamp() public static method

public static FromCassandraTimestamp ( long ts ) : DateTimeOffset
ts long
return DateTimeOffset

ToCassandraTimestamp() public static method

public static ToCassandraTimestamp ( this dt ) : long
dt this
return long

Property Details

MaxUnixMicroseconds public_oe static_oe property

public static long MaxUnixMicroseconds
return long

MaxUnixMilliseconds public_oe static_oe property

public static long MaxUnixMilliseconds
return long

MaxUnixSeconds public_oe static_oe property

public static long MaxUnixSeconds
return long

UnixStart public_oe static_oe property

public static DateTimeOffset UnixStart
return DateTimeOffset

UtcNow public_oe static_oe property

Allows for the use of alternative timestamp providers.
public static Func UtcNow
return Func