Please enable JavaScript to view this site.

 

int = iYearOf(nWesternDate)

 

This macro function returns the year part of the Muslim/Islamic date corresponding to nWesternDate.

 

This function is calculated using the Muslim calendar specified in the current script's muslim data property. It is therefore possible that the result of this function be different from one script to the next, if these 2 scripts use different Muslim calendars.

 

The macro code calculates the difference between the Hejira year and the Gregorian year number, on the date of the incoming macro token.

nHejira = iYearOf(n_TokenDate)
nGregorian = YearOf(n_TokenDate)
sResult = 'Gregorian count is ' + IntToStr(nGregorian-nHejira) + ' higher' 

See also: iDayOf, iMonthOf, iDateInYear, EncodeMuslimDate.

 


Topic 138800, last updated on 01-Aug-2020