Modify a datetime or time to a new hour.

Declaration

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

Parameters

datetime (type: datetime)
Any datetime.
new_hour (type: number)
The new hour that gets updated in the datetime.
time (type: time)
Any time.

Return Values

datetime (type: datetime)
The resulting datetime by taking the base and adding the update values.
time (type: time)
The resulting time by taking the base and adding the update values.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.