Your Airkit journey starts here

UPDATE_HOUR

Modify a datetime or time to a new hour.

Declaration

UPDATE_HOUR(datetime, new_hour) -> datetime
UPDATE_HOUR(time, new_hour) -> time

Parameters

datetime
datetime -Any datetime.
new_hour
number -The new hour 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.