[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Leap Year
The way I have always determined leap year is use MOD arithmetic.
If you divide the 4 digit year by the number 4, and the remainder = 0, then it's
a leap year.
let #year = to_number(datetostr($date_variable,'YYYY'))
let #leap_year = MOD(#year,4)
if #leap_year = 0
blah
blah
end-if
Tajinder Chahal <Tchaha@ROUSHIND.COM> on 04/18/2001 11:52:36 AM
Please respond to sqr-users@list.iex.net
To: SQR-USERS@list.iex.net
cc: (bcc: Rick Creel/IT/Aon Consulting)
Subject: Leap Year
Does anyone know if there is a function in SQR which can determine if the year
is a leap year or not?
Thanks in Advance
Tajinder