range_recent_tc: Construct Ranges of datetimes

Description Usage Arguments Value

View source: R/dates.R

Description

Construct Ranges of datetimes

Usage

1
2
3
4
range_recent_tc(tc = c("hour", "sec", "min", "Workday", "day", "week",
  "Month", "quarter", "year"), N = 24, what = c("recent", "seasonal"),
  sc = c("day", "hour", "Workday", "week", "Month", "quarter", "year"),
  complete = TRUE, tz = "UTC", anchor, right_open = TRUE)

Arguments

tc

The primary period to use (for recent time)

N

How many units of that period

what

Whether to produce a seasonal range sequence or "recent" period range

sc

The seasonal period (only used if what = "seasonal")

complete

Whether to truncate the reference time to the start of the period (i.e. it is complete)

tz

Optionally define a custom timezone

anchor

The reference time to use (now by default)

Value

a single range (recent period) or sequence of ranges (seasonal)


henfiber/later documentation built on May 20, 2019, 6:46 p.m.