The time x seconds before now

seconds_ago(seconds = 0, tzone = "")

Arguments

seconds

integer number of seconds

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 seconds ago

Examples

seconds_ago(120)
#> [1] "2022-03-23 15:52:40.308763 UTC"
seconds_ago(3600)
#> [1] "2022-03-23 14:54:40.312684 UTC"