method second

Documentation for method second assembled from the following types:

class DateTime

From DateTime

(DateTime) method second

Defined as:

method second(DateTime:D:)

Returns the second component, including potentially fractional seconds.

say DateTime.new('2012-02-29T12:34:56Z').second;     # OUTPUT: «56␤» 
say DateTime.new('2012-02-29T12:34:56.789Z').second# OUTPUT: «56.789␤» 
say DateTime.new('2012-02-29T12:34:56,789Z').second# comma also ok