EllaTime class
- Implemented types
Constructors
- EllaTime.new(int seconds)
- Default constructor which accepts total seconds.
- EllaTime.fromComponents(int hours, int minutes, int seconds)
-
Construct from time components
factory
- EllaTime.fromDateTime(DateTime dateTime)
-
Construct from DateTime's time values
factory
- EllaTime.fromDuration(Duration duration)
-
Construct from Duration object
factory
- EllaTime.fromInterval(String value)
-
Expects input in format of hh:mm. Does not support an offset unit greater than hours.
factory
Properties
Methods
-
addDays(
int value) → EllaTime -
addDuration(
Duration duration) → EllaTime -
addHours(
int value) → EllaTime -
addMinutes(
int value) → EllaTime -
addSeconds(
int value) → EllaTime -
getHoursComponent(
) → int -
getMinutesComponent(
) → int -
getSecondsComponent(
) → int -
isNegative(
) → bool -
marshal(
MarshalledObject marshalled) → void -
Marshal method must operate by mutating empty object passed.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAbsolute(
) → EllaTime -
toDateTime(
DateTime dateTime) → DateTime -
toDuration(
) → Duration -
toMinutes(
) → int - Returns the total minutes in the time
-
toSQLInterval(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
componentsToSeconds(
int hours, int minutes, int seconds) → int -
unmarshal(
MarshalledObject marshalled) → EllaTime - Encoded object parameter is encoded depending on format.
Constants
- secondsPerDay → const int
- secondsPerHour → const int
- secondsPerMinute → const int