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 fromT
toS
.final -
encoder
→ Converter<
int, DateTime> -
Returns the encoder from
S
toT
.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
encoded
data.override -
encode(
int input) → DateTime -
Encodes
input
.override -
fuse<
R> (Codec< DateTime, R> other) → Codec<int, R> -
Fuses
this
withother
.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