update August 5, 08:30: http://TiddlyTools.com/timer.html 
<http://tiddlytools.com/timer.html>

* AnalogClock/DigitalClock - handle leap years in "days per month" (dpm) 
calculations in adjustForTimezone()

<$vars   leap={{{ [<yyyy>divide[4]split[.]count[]match[1]then[yes]] }}}>
<$set    name="dpm" value="31 28 31 30 31 30 31 31 30 31 30 31"> <!-- days 
per month -->
<$set    name="dpm" filter="[<leap>!match[]]" value="31 29 31 30 31 30 31 
31 30 31 30 31" emptyValue=<<dpm>>>

Be sure to update before the end of February 2024 (the next leap year)
This will be accurate until the year 2100 (which is NOT a leap year)

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/90913484-8cff-446e-9f7e-9d9964f950fbo%40googlegroups.com.

Reply via email to