HDateTime class
HDateTime models a timestamp with a specific timezone.
See Project Haystack.
Constructors
- HDateTime(HDate date, HTime time, HTimeZone tz)
- HDateTime.fromDateTime(DateTime dt, HTimeZone tz)
-
factory
- HDateTime.fromMillis(int ms, HTimeZone tz)
-
factory
- HDateTime.fromString(String s)
-
factory
- HDateTime.fromValues(int year, int month, int day, int hour, int min, int sec, HTimeZone tz)
-
factory
- HDateTime.now(HTimeZone tz)
-
factory
Properties
- date → HDate
-
Date component of the timestamp
final
- hashCode → int
-
Hash is based on date, time, tzOffset, and (NOT) tz
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → HTime
-
Time component of the timestamp
final
- tz → HTimeZone
-
Timezone as Olson database city name
final
- tzOffset → int
-
Offset in seconds from UTC including DST offset
no setter
Methods
-
compareTo(
Object that) → int -
Comparison based on millis.
override
-
millis(
) → int - Get this date time as Java milliseconds since epoch
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
Encodes as 't:YYYY-MM-DD'T'hh:mm:ss.FFFz zzzz'.
override
-
toString(
) → String -
String format is for human consumption only.
inherited
-
toZinc(
) → String -
Encodes as 'YYYY-MM-DD'T'hh:mm:ss.FFFz zzzz'.
override
Operators
-
operator ==(
Object that) → bool -
The equality operator.
override