AddHours
Adds a specified number of hours to a point in time.
Syntax
-
AddHours(t, n)-
tis a datetime structure or a timestamp -
nis an integer
-
Description
AddHours(t, n) returns the point in time obtained by adding n whole hours to t. If t is a DateTime structure or a timestamp, so is the result.
Examples
AddHours(date(2020, 05, 20), 5)
date.year: 2020 date.month: May date.day: 20 time.hour: 5 time.minute: 0 time.second: 0 time.millisecond: 0