In my previous blog entry on the same topic, I have mentioned the logic and function used to find the Leap year.
In this article with little bit tweak in the logic we are trying to find the same information.
I haven't included this script as a part of function. This is standalone script which would return 1 or 0 depending on whether the evaluated date is from a leap year or not.
The logic used this time around is given below