Timestamp extension type
A Timestamp represents a point in time independent of any time zone or calendar, represented as seconds and fractions of seconds at nanosecond resolution in UTC Epoch time. It is encoded using the Proleptic Gregorian Calendar which extends the Gregorian calendar backwards to year one. It is encoded assuming all minutes are 60 seconds long, i.e. leap seconds are "smeared" so that no leap second table is needed for interpretation. Range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z.
@see https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nanoseconds → int
-
The non-negative fractions of a second at nanosecond resolution.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
The number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.
no setter
Methods
-
isEqual(
Timestamp other) → bool -
Returns true if this
Timestamp
is equal to the provided one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDate(
) → Date -
Returns a new
Date
corresponding to this timestamp. This may lose precision. -
toMillis(
) → int - Returns the number of milliseconds since Unix epoch 1970-01-01T00:00:00Z.
-
toString(
) → String -
A string representation of this object.
inherited
-
valueOf(
) → String -
Converts this object to a primitive
string
, which allowsTimestamp
objects to be compared using the>
,<=
,>=
and>
operators.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- static → TimestampStatic
-
Access to static members on Timestamp
no setter