Epoch class
@fileoveriew Serialisable epoch-based representation of a date & time. Does not store timezone information.
- Inheritance
-
- Object
- DateTimeSupplierObject
- Epoch
- Implemented types
Constructors
- Epoch(int epochMS)
- Epoch.fromDateTime(DateTime dateTime)
-
factory
Properties
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