persian <- OtherDate(day=1:20, month=10, year=1385, calendar="persian")
persian
gregorian<-as.Date(persian)
gregorian
as.OtherDate(gregorian,"persian")
as.OtherDate(gregorian,"islamic")
as.OtherDate(gregorian,"hebrew")
## from POSIXct
as.OtherDate(.leap.seconds, "persian")
## Not run:
# ## from character string in Gregorian date,
# ## (depends on month names in your locale)
# as.OtherDate("14jun1969",format="%d%b%Y", "hebrew")
# ## End(Not run)
Run the code above in your browser using DataLab