HTime class
HTime models a time of day tag value.
See Project Haystack
Constructors
- HTime(int hour, int min, [int sec = 0, int ms = 0])
-
Construct with all fields.
factory
- HTime.fromDateTime(DateTime dt)
-
Construct from Dart DateTime instance.
factory
- HTime.fromString(String s)
-
Parse from string fomat 'hh:mm:ss.FF' or raise ParseError.
factory
Properties
- hashCode → int
-
Hash is based on hour, min, sec, ms.
no setteroverride
- hour → int
-
Hour of day as 0-23.
final
- min → int
-
Minute of hour as 0-59.
final
- ms → int
-
Fractional seconds in milliseconds 0-999.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sec → int
-
Second of minute as 0-59.
final
Methods
-
compareTo(
Object that) → int -
Returns sort order as negative, 0, or positive.
override
-
encode(
StringBuffer s) → void - Package private implementation shared with HDateTime.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Encodes as 'h:hh:mm:ss.FFF'.
override
-
toString(
) → String -
String format is for human consumption only.
inherited
-
toZinc(
) → String -
Encodes as "hh:mm:ss.FFF".
override
Operators
-
operator ==(
Object that) → bool -
Equals is based on year, month, day.
override