xt countdown
Countdown (or up) function
HTML only
This function can be used to create countdowns in years months days hours or seconds
from and to can be almost any reasonable string that represents a date or a relative moment in time like now today yesterday tomorrow midnight and even things like next monday basically try it you never know it may work
Example code
Seconds <xt:countdown format="seconds" from="now" to="tomorrow"/><br />
Minutes <xt:countdown format="minutes" from="now" to="next monday"/><br />
Hours <xt:countdown format="hours" from="now" to="2100-01-01 00:00:01"/><br />
Days <xt:countdown format="days" from="now" to="1st january 2100 00:00:01"/><br />
Days till christmas <xt:countdown format="days" from="now" to="dec 25th"/>
Show in textareaExample output
ReloadSeconds 71603
Minutes 2633
Hours 657053
Days 27394
Days till christmas 24