whole-second
ErrorsCollection

whole-second

Synthesised documentation from type/DateTime

From type/DateTime

See Original text in context

method whole-second(DateTime:D:)

Returns the second component, rounded down to an Int.

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