Documentation for method hh-mm-ss assembled from the following pages:

Class: DateTime §

From DateTime

(DateTime) method hh-mm-ss §

Defined as:

method hh-mm-ss(DateTime:D: --> Str:D)

Returns the time represented by the object as a string in 24-hour HH:MM:SS format:

say DateTime.new("2052-02-29T22:34:56Z").hh-mm-ss;
# OUTPUT: «22:34:56␤»