You can find many articles on the Internet about how to identify a leap year. microsoft.com , wikipedia.org , earthsky.org
However, this is not a frequently used pointer. Maybe someone’s going to use the prepared equation:
I will not work without coffee.
Transparent 1. element:
$(#Dy#%400)==0?100:0$
Transparent 2. element:
$(#Dy#%100)!=0&&(#Dy#%4)==0?100:0$
Place element 2 under element1.
Element 2 is visible whenever the year is divisible 4, but is not divisible by 100.
Element 1 solves the exception by dividing 400.
Thanks and sorry for confusion
3 Likes
Ben
August 2, 2018, 11:24pm
2
try
Text 1 value YES
Transparency
$((#Dy #-2000)%4)==0?100:0$
Text 2 value No
Transparency
$((#Dy #-2000)%4)==0?0:100$
1 Like
It made me take one more check and found a mistake with me.
A year that is evenly divisible by 100 (for example, 1900) is a leap year only if it is also evenly divisible by 400.
In your solution, 2100 is marked as a leap. It is not right.
And I plan to keep my watch until 2100
3 Likes
Ben
January 7, 2025, 7:01am
4
Update expression for is a leap year? Leap Years else Common Years
$((floor(floor(#Dy#/100)*36524.25)+floor(#Dy#%100*365.25))-(floor((floor((#Dy#-1)/100))*36524.25)+floor((#Dy#-1)%100*365.25))-337-28)==1?Leap Years:Common Years$
Try leap year calculate at
Is a Leap Year?, the visual simplicity functionality of the analog / digital watch face works for both circle / round and square watches dial formats. try tapped at 12 clock for theme picker, tapped at 12 clock for leap year calculator, moon phase
1 Like
Facer solved it completely for us. Hopefully it works properly for them.
$#DISLEAPYEAR#==true?Leap Years:Common Years$
2 Likes
Yippee . I can now future Proof my Faces despite knowing that I will not be around to witness it. I wonder myself what will happen to #DNOW # and the Unix Epoch Timer , but sadly I won’t be around for that either .
Good to hear from you Guys.
1 Like