FirestoreTimestamp class
A point in time, to nanosecond precision.
Carried as two integers rather than RFC 8949's tag 1, whose payload is a single number: a float64 epoch cannot hold nanoseconds, and rounding a timestamp silently is worse than being explicit.
- Inheritance
-
- Object
- FirestoreValue
- FirestoreTimestamp
Constructors
- FirestoreTimestamp(int seconds, int nanoseconds)
-
const
- FirestoreTimestamp.fromDateTime(DateTime t)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- nanoseconds → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDateTime(
) → DateTime -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override