Jump to content

User:ShinyGee/FuzzyInterval/doc

From Wikipedia, the free encyclopedia

Displays the time interval between a given date and today in "fuzzy" terms (in terms of weeks, months, years, decades, etc, but without being overly-precise). The given date can be in the past or in the future.

Usage

[edit]

{{User:ShinyGee/FuzzyInterval|year=year|month=month|day=day}}

year, month, and day correspond to the exact date of interest. Any parameter can be left out (while, admittedly, it makes little sense to specify a day without specifying a month, these are fuzzy time intervals, so we may not much care!).

For omitted parameters, the template takes the corresponding values from the launch date of Wikipedia (15 January 2001).

Examples

[edit]

The examples in the first two sections (Order of weeks and Order of months) have been frozen in time to look exactly as they did when rendered on 8 March 2010, 23:00 UTC.

The examples in the remaining sections (Order of centuries, A very long time, and Into the future) update dynamically.

Order of weeks

[edit]

The results from these examples are frozen to look exactly as they did when rendered on 8 March 2010, 23:00 UTC.

Text entered Result
{{User:ShinyGee/FuzzyInterval|year=2010|month=3|day=7}} a day
{{User:ShinyGee/FuzzyInterval|year=2010|month=3|day=6}} two days
{{User:ShinyGee/FuzzyInterval|year=2010|month=3|day=5}} three days
{{User:ShinyGee/FuzzyInterval|year=2010|month=2|day=28}} eight days
{{User:ShinyGee/FuzzyInterval|year=2010|month=2|day=2}} five weeks
{{User:ShinyGee/FuzzyInterval|year=2010|month=1|day=2}} two months

Order of months and years

[edit]

The results from these examples are frozen to look exactly as they did when rendered on 8 March 2010, 23:00 UTC.

Text entered Result
{{User:ShinyGee/FuzzyInterval|year=2009|month=11|day=2}} four months
{{User:ShinyGee/FuzzyInterval|year=2009|month=4|day=2}} eleven months
{{User:ShinyGee/FuzzyInterval|year=2009|month=3|day=2}} a year
{{User:ShinyGee/FuzzyInterval|year=2009|month=2|day=2}} a year and one month
{{User:ShinyGee/FuzzyInterval|year=2009|day=2}} a year and two months
{{User:ShinyGee/FuzzyInterval|year=2007|month=1}} three years

Order of centuries

[edit]
Text entered Result
{{User:ShinyGee/FuzzyInterval|year=1910|month=6|day=9}} 110 years
{{User:ShinyGee/FuzzyInterval|year=1910}} 120 years
{{User:ShinyGee/FuzzyInterval|year=1899}} 130 years
{{User:ShinyGee/FuzzyInterval|year=1810}} 220 years

A very long time

[edit]
Text entered Result
{{User:ShinyGee/FuzzyInterval|year=1271}} 750 years
{{User:ShinyGee/FuzzyInterval|year=1010}} a thousand years
{{User:ShinyGee/FuzzyInterval|year=1001}} a thousand years
{{User:ShinyGee/FuzzyInterval|year=0}} 2000 years
{{User:ShinyGee/FuzzyInterval|year=-70}} 2100 years
{{User:ShinyGee/FuzzyInterval|year=-1234}} 3300 years
{{User:ShinyGee/FuzzyInterval|year=-2474}} 4500 years
{{User:ShinyGee/FuzzyInterval|year=-9910}} over ten thousand years

Into the future

[edit]
Text entered Result
{{User:ShinyGee/FuzzyInterval|year=2012|month=12|day=12}} twelve years
{{User:ShinyGee/FuzzyInterval|year=2048}} twenty-three years
{{User:ShinyGee/FuzzyInterval|year=8765}} 6700 years
{{User:ShinyGee/FuzzyInterval|year=18765}} over ten thousand years

See also

[edit]