View source: R/hca_day_break.R
day_break | R Documentation |
Find the day break given time in POSIXct format
day_break(
posixcttime,
dbtime = "07:00:00",
timezone = extract_time_zone(Sys.time()),
prev = F
)
posixcttime |
time |
dbtime |
String denoting time of daybreak in 24-hour format. Default is '07:00:00' (7AM) |
timezone |
String denoting timezone. Default is system timezone. |
prev |
If TRUE, find previous daybreak. If FALSE, find next daybreak. |
Time of previous or next daybreaks
# Find next daybreak
next_day_break(Sys.time())
prev_day_break(Sys.time())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.