I am using this code:
I know Egbert is very serious about dates however, a calculation like this:
INT((yearsBC + yearsAD) * 365.25)
may be very cpu and programming depending.
Imo at least vars like: yearsBC AS LONG, yearsAD AS LONG should be double.
And 365.25 should be tagged as double like:
Local yearsBC AS Double, yearsAD AS Double
INT((yearsBC + yearsAD) * 365.25#)
Not sure if this is ok: FUNCTION = JDN MOD 7 + 1
FUNCTION = (JDN MOD 7) + 1
Or:
FUNCTION = (JDN MOD (7 + 1))
Opinions?
I know Egbert is very serious about dates however, a calculation like this:
INT((yearsBC + yearsAD) * 365.25)
may be very cpu and programming depending.
Imo at least vars like: yearsBC AS LONG, yearsAD AS LONG should be double.
And 365.25 should be tagged as double like:
Local yearsBC AS Double, yearsAD AS Double
INT((yearsBC + yearsAD) * 365.25#)
Not sure if this is ok: FUNCTION = JDN MOD 7 + 1
FUNCTION = (JDN MOD 7) + 1
Or:
FUNCTION = (JDN MOD (7 + 1))
Opinions?
Comment