jal2greg {jalcal}R Documentation

Convert Jalali calendar date to Gregorian calendar date

Description

Convert Jalali calendar date to Gregorian calendar date

Usage

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

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


[Package jalcal version 0.1.0 Index]