BifrostDateTime class
Convert Bifrost block time (secondsSinceEpoch in UTC) to DateTime and back.
Constructors
- BifrostDateTime()
-
const
Properties
-
decoder
→ Converter<
DateTime, int> -
Returns the decoder of
this, converting fromTtoS.final -
encoder
→ Converter<
int, DateTime> -
Returns the encoder from
StoT.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
DateTime, int> -
Inverts
this.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
DateTime encoded) → int -
Decodes
encodeddata.override -
encode(
int input) → DateTime -
Encodes
input.override -
fuse<
R> (Codec< DateTime, R> other) → Codec<int, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited