hours

Applies NNN hours modifier to a date/time value.

This function translates to the 'NNN hours' modifier in SQLite's date and time functions. You can pass a negative integer to subtract hours.

Example

// Add 3 hours to the current time
select(TIME().now().hours(3)).execute()

// Subtract 6 hours from the current time
select(TIME().now().hours(-6)).execute()

Return

A KQLiteColumn with the hour modifier applied.

Author

MOHAMMAD AZIM ANSARI

Parameters

hours

The number of hours to add. A negative value subtracts hours.

See also