bumble.sf.net language and parsing

plain text fnIsLeapYear()

Description


This function tests a four digit year and returns a boolean value depending on whether the year is a leap year or not. This is the age old function which has been written in probably hundreds of computer languages, well and badly, thoroughly and sloppily, enthusiastically and grudgingly, late at night and early in the morning, by near geniuses and by the slightly dim. And what has become of all their code? Where has it slipped to. All that effort and time and optimism. Here is my version. In the latest throwaway language available. (Not the latest anymore) I don't think this function does any gregorian calendar intricacies, as far as I can remember.

Syntax


bTest = fnIsLeapYear(iYear)

Example


<%@ Language=VBScript %> <% Response.Buffer = true %>