Class TimestampExtensions
An extension class for helping to turn a nanosecond based timestamp into a System.DateTimeOffset object
Inheritance
System.Object
TimestampExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public static class TimestampExtensions
Methods
| Improve this Doc View SourceAsDateTimeOffset(UInt64)
Converts the nanosecond timestamp to a DateTimeOffset in UTC time
Declaration
public static DateTimeOffset? AsDateTimeOffset(this ulong rawVal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt64 | rawVal | The nanosecond timestamp |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.DateTimeOffset> | The DateTimeOffset object using the timestamp, or null if it was invalid |