Brian Dunning's FileMaker Custom Functions

isLeapYear ( _year )

leap year simple test

  Average rating: 4.4 (35 votes) Log in to vote

Fabrice Nordmann   Fabrice Nordmann
1-more-thing
https://www.1-more-thing.com

Share on Facebook Share on Twitter

  Sample input:
isLeapYear ( 1996 )
  Sample output:
1

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

returns boolean result.

 

Comments

Gjermund Gusland Thorsen   Gjermund Gusland Thorsen, HELGEROA
Oct 20, 2009
The idea is brilliant, however it does not seem to do correct for the years dividable by 400, if I recall correctly 1600 an 2000 should be different from 1596 and 2004? Or no? Is that a bug in FileMaker? http://en.wikipedia.org/wiki/Leapyear
 
Gjermund Gusland Thorsen   Gjermund Gusland Thorsen, HELGEROA
Oct 20, 2009
Sorry last post, it all seems OK,

1700, 1800, and 1900 is not the same as 2000, that’s what I had in mind.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.