Skip to main content

DateTime():second()

Sets the second of the minute of the DateTime object.

Signature​

second(second: number): DateTime

Parameters​

ParametersTypeDescription
secondnumberThe second to set (0-59).

Returns

DateTime - The current DateTime instance for chaining.