hour property

int hour
override

The hour of the day, expressed as in a 24-hour clock 0..23.

var covid19Confirmed = EtDatetime.parse("2012-07-04 13:18:04Z");
assert(covid19Confirmed.hour == 13);

Implementation

int get hour => (moment ~/ hourMilliSec) % 24;