method hour

Documentation for method hour assembled from the following types:

class DateTime

From DateTime

(DateTime) method hour

Defined as:

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

Returns the hour component.

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