persian_civil

Description

persian_civil converts a provided  Persian (Shamsi) date into a Civil (Gregorian) date.

Gory details

The function presented here is just one example of an algorithm to convert an Persian date to a Civil date. It starts by calling persian_jdn to calculate the Julian day number for the provided Persian date. From this Julian day number, the Civil year, month and day are derived by calling jdn_civil.

Code section

Sub persian_civil(ByRef iYear As Integer, _
                       ByRef iMonth As Integer, _
                       ByRef iDay As Integer)
    Call jdn_civil(persian_jdn(iYear, _
                               iMonth, _
                               iDay), _
                   iYear, iMonth, iDay)
End Sub

See also

persian_jdn, jdn_civil, civil_persian

Last update

Julian Day Number:2452163
Civil (Gregorian) date:Monday, 10 September 2001
Julian date:Monday, 28 August 2001
Hebrew date:yom sheni, 22 Elul 5761
Islamic date:Al-`iTHnain, 22 Jumada II 1422
Persian date:Doshanbeh, 19 Shahrivar 1380

Back to Calendar Math.

mail me
Kees Couprie

Other pages by the same author.