next_day: checks whether a new day has broken (date has increased by at...

View source: R/shorthands.R

next_dayR Documentation

checks whether a new day has broken (date has increased by at least one day)

Description

a simple utility functions to avoid that looped Skip Backwards/Skip Forwards in formr are true repeatedly.

Usage

next_day(date = NULL)

Arguments

date

defaults to .formr$last_action_date, a hidden variable that is automatically set by formr.org. Will be coerced to POSIXct.

Examples

next_day(Sys.time())

rubenarslan/formr documentation built on Feb. 6, 2024, 1:18 a.m.