Posted By

jatkins on 05/20/10


Tagged

time date Calculator leapyear calculators


Versions (?)

Leap year checker


 / Published in: JavaScript
 

Based on algorithm from http://www.dataip.co.uk/Reference/LeapYear.php.

  1. function is_leap_year(year) { return year%4==""&&year%100!="" ? true : false; }

Report this snippet  

You need to login to post a comment.