method

sec=

sec=(value)
public

Set value as the new date/time component.

Raises an ArgumentError if the given value isn’t between 0 and 59.