gregorian_date {calcal} | R Documentation |
Gregorian calendar dates
Description
The Gregorian calendar is the standard calendar used by most of the world. It was named for Pope Gregory XIII who introduced it in 1582. It is a modification of the Julian calendar which was in use at the time.
Usage
gregorian_date(year = integer(), month = integer(), day = integer())
as_gregorian(date)
Arguments
year |
A numeric vector of years |
month |
A numeric vector of months |
day |
A numeric vector of days |
date |
Vector of dates on some calendar |
Value
A gregorian vector object
See Also
Examples
new_date(year = 2025, month = 3, day = 2:4, calendar = cal_gregorian)
gregorian_date(2025, 4, 19:30)
as_date(Sys.Date(), calendar = cal_gregorian)
as_gregorian(Sys.Date())
as_gregorian("2016-01-01")
tibble::tibble(
x = seq(as.Date("2025-01-01"), as.Date("2025-12-31"), by = "day"),
y = as_gregorian(x),
z = as_date(x, calendar = cal_gregorian)
)
[Package calcal version 1.0.0 Index]