hour
ErrorsCollection

hour

Synthesised documentation from type/DateTime

From type/DateTime

See Original text in context

method hour(DateTime:D: --> Int:D)

Returns the hour component.

say DateTime.new('2012-02-29T12:34:56Z').hour;      # OUTPUT: «12␤»