Your Airkit journey starts here

UPDATE_SECOND

Modify a datetime or time to a new second.

Declaration

UPDATE_SECOND(datetime, new_second) -> datetime
UPDATE_SECOND(time, new_second) -> time

Parameters

datetime
datetime -Any datetime.
new_second
number -The new second that gets updated in the datetime.
time
time -Any time.

Return Values

datetime
datetime -The resulting datetime by taking the base and adding the update values.
time
time -The resulting time by taking the base and adding the update values.