method hour
1 | class DateTime |
1.1 | (DateTime) method hour |
Documentation for method hour
assembled from the following types:
class DateTime
From DateTime
(DateTime) method hour
Defined as:
method hour(DateTime: --> Int)
Returns the hour component.
say DateTime.new('2012-02-29T12:34:56Z').hour; # OUTPUT: «12»