Template:Days until

From FlightGear wiki
Jump to navigation Jump to search

0

The following template description is not displayed when the template is inserted in an article.

Goal

This template will count down to a certain date.

Note Only dates within a year ahead can be counted down to with this template.

Usage

{{days until|event |date=}}
event
Date to be count down to. Defaults to today.
date
Overrides the current date and time. Useful for debugging purposes etc.

Examples

{{days until|Friday, 8 November 2024}}

3

{{days until|+2 weeks |date=+1 week}}

7

Technical details

This template uses the MediaWiki extension ParserFunctions and specifically the #time: function. The date or time can be in one of the many PHP strtotime() formats, which also includes relative time formats.

Note Dates are less ambiguous if the year is given with four digits and the month is given with letters.

Related templates