Description Usage Arguments Examples
checks how much time has passed. You can choose the unit. Implemented via lubridate::dseconds()
, not periods, i.e. a minute has 60 seconds, an hour 60 minutes, a day 24 hours. Months and years are not well-defined durations, but we offer them anyway for convenience.
1 2 | time_passed(years = 0, months = 0, weeks = 0, days = 0, hours = 0,
minutes = 0, seconds = 0, time = NULL)
|
years |
365 days |
months |
30 days |
weeks |
7 days |
days |
24 hours |
hours |
60 minutes |
minutes |
60 seconds |
seconds |
argument to |
time |
defaults to .formr$last_action_time, a hidden variable that is automatically set by formr.org |
1 | time_passed(hours = 7, time = Sys.time())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.