the time x hours ago

hours_ago(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 time, x hours ago

Examples

hours_ago(1)
#> [1] "2022-03-23 14:54:36 UTC"
hours_ago(24)
#> [1] "2022-03-22 15:54:36 UTC"