TimeCellValue class Cell Values

A cell value containing a time of day.

Inheritance

Constructors

TimeCellValue({int hour = 0, int minute = 0, int second = 0, int millisecond = 0, int microsecond = 0})
Creates a time cell value.
const
TimeCellValue.fromDuration(Duration duration)
Creates a TimeCellValue from a Duration.
factory
TimeCellValue.fromFractionOfDay(num fractionOfDay)
fractionOfDay=1.0 is 24 hours, 0.5 is 12 hours and so on.
factory
TimeCellValue.fromTimeOfDateTime(DateTime dt)
Creates a TimeCellValue by extracting the time from a DateTime.

Properties

asError CellErrorValue?
This value as a CellErrorValue, or null if it is not an error.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
hour int
Hours component.
final
isError bool
Whether this value is a cell error (e.g. #DIV/0!, #N/A).
no setterinherited
microsecond int
Microseconds component (0-1000).
final
millisecond int
Milliseconds component (0-1000).
final
minute int
Minutes component (0-60).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
Seconds component (0-60).
final

Methods

asDuration() Duration
Converts this time value to a Duration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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