Learn R Programming

calcal (version 1.0.0)

persian_date: 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)

Value

A persian vector object

Arguments

year

Numeric vector of years

month

Numeric vector of months

day

Numeric vector of days

date

Vector of dates on some calendar

Examples

Run this code
gregorian_date(2025,5,1:20) |>
  as_persian()

Run the code above in your browser using DataLab