jal2greg: Convert Jalali calendar date to Gregorian calendar date

Description Usage Arguments Value Author(s) Examples

View source: R/jal2greg.R

Description

Convert Jalali calendar date to Gregorian calendar date

Usage

1
jal2greg(year, month, day, asDate = TRUE)

Arguments

year

An integer specifying Jalali year

month

An integer specifying Jalali month

day

An integer specifying Jalali day

asDate

A logical flag indicating whether the output Gregorian date must be in date format

Value

If asDate = TRUE, the default case, an object of the Date class in R, otherwise an integer vector consisting of the Gregorian year, month and day

Author(s)

Abdollah Jalilian

Examples

1
2
3
jal2greg(1, 1, 1)
jal2greg(1362, 6, 17)
jal2greg(1362, 6, 17, asDate=FALSE)

jalcal documentation built on Sept. 7, 2021, 5:09 p.m.