Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the next leap year
ResourceFunction["NextLeapYear"][date] find the next year that is a leap year. |
Find the next leap year after today:
In[1]:= |
Out[1]= |
Find the next year after 18 February 2002 23:45:45pm with the time zone in Huntington, West Virginia that is a leap year in the Gregorian calendar:
In[2]:= |
Out[2]= |
Find the next leap year for a random date this year:
In[3]:= |
Out[3]= |
Find the next leap year after D-Day:
In[4]:= |
Out[4]= |
In the Julian calendar 1900 is a leap year, but in the Gregorian calendar, its not because its divisible by 100 and not by 400. Find the next leap year in the Gregorian calendar:
In[5]:= |
Out[5]= |
In[6]:= |
Out[6]= |
Without a leap year in 1900, the leap year after 1899 is 1904:
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License