logo
Home XtGem- Templates- XtScript- bottom
XtGemmanual

XtGem tags and tools

xt countdown

Countdown (or up) function
HTML only

Notes

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

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"/>

Copy as text

Output reload

Seconds 14952
Minutes 3129
Hours 639620
Days 26668
Days till christmas 27

Related

time and date

XtGem manual · all sections

Powered by XtGem
About us Contact Forum top