Epoch class

@fileoveriew Serialisable epoch-based representation of a date & time. Does not store timezone information.

Inheritance
Implemented types

Constructors

Epoch(int epochMS)
Epoch.fromDateTime(DateTime dateTime)
factory

Properties

epochMS int
Milliseconds since epoch
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getEpochSeconds() int
marshal(MarshalledObject marshalled) → void
serialise to this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
override
toDateTimeAsUTC() DateTime
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

getNow() Epoch
unmarshal(MarshalledObject marshalled) Epoch