Template:Compare dates/doc

Usage
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

 * returns
 * returns
 * returns
 * returns
 * returns

Parameters
{	"params": { "1": {			"label": "Date", "description": "The date or time being compared", "type": "date", "required": true },		"2": {			"label": "Precision", "description": "The level of precision at which the comparison is being made; handles the suggested values listed.", "suggestedvalues": [ "hour", "day", "month", "year" ],			"required": true }	},	"description": "Returns a plain language comparison of a date or time to the present" }