the time x hours hence

hours_hence(hours = 0, tzone = "")

Arguments

hours

integer number of hours

tzone

a character vector specifying which time zone you would like to find the previous date of. tzone defaults to the system time zone set on your computer.

Value

The datetime, x hours from now

Examples

hours_hence(1)
#> [1] "2022-03-23 16:54:36 UTC"
hours_hence(24)
#> [1] "2022-03-24 15:54:36 UTC"