Contents

Roo

DateTime.hour

Returns the hour (1 - 24) of this DateTime object as an integer Number.

var now = DateTime(1514194200)
print(now.hour) # 9