persian_date {calcal} | R Documentation |
Persian dates
Description
The modern Persian calendar was adopted in 1925 in Iran and in 1957 in Afghanistan. An alternative version
of the calendar, using only arithmetic (rather than astronomical) calculations is available as the apersian
calendar.
Usage
persian_date(year = integer(), month = integer(), day = integer())
apersian_date(year = integer(), month = integer(), day = integer())
as_persian(date)
as_apersian(date)
Arguments
year |
Numeric vector of years |
month |
Numeric vector of months |
day |
Numeric vector of days |
date |
Vector of dates on some calendar |
Value
A persian vector object
Examples
gregorian_date(2025,5,1:20) |>
as_persian()
[Package calcal version 1.0.0 Index]