Template:Compare dates
Sarna News
- HEXTECH Review - Wave 3 Brings More Urban Options To Your Battlefield
- Your BattleTech News Round-Up For March, 2024
- Crashing 'Mechs With Jennifer Brozek, Author Of The Rogue Academy Trilogy
- Getting The Word Out With Rem Alternis, Catalyst Community & Marketing Director
- Bad 'Mechs - Yeoman
- Read more →
Usage[edit]
This template takes two mandatory unnamed parameters. The first is a date/time string and the second is a level of precision. It then returns a plain language comparison of the date/time to the current UTC date/time. If it's not the next, current, or previous one, the template just returns the date/time entered.
Examples[edit]
{{Compare dates|17:32 18 April 2024|hour}}
returnsthis hour
{{Compare dates|18 April 2024|day}}
returnstoday
{{Compare dates|March 2024|month}}
returnslast month
{{Compare dates|August 2024|month}}
returnsAugust 2024
{{Compare dates|October 1887|month}}
returnsOctober 1887
See also[edit]
- {{Is now}}
- {{Age switch}}