Trailing space testsಸಂಪಾದಿಸಿ

Purge

1 Jan 2012:

  • >9 years ago<
  • >9 years ago<
  • >Error: first parameter cannot be parsed as a date or time.<
  • >9 years ago<sbx

current time:

  • >0 seconds ago<
  • >0 seconds ago<sbx

1 Jan 2012, with purge

current time with purge:

  • >0 seconds ago (purge)<
  • >0 seconds ago (purge)<sbx

Line break test (no purge)

live>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

sbx>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

Line break test (purge can appear at start of line)

live>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

sbx>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

Sandbox testsಸಂಪಾದಿಸಿ

  • Normal: 12 years ago
  • Minutes: 6423044 minutes ago
  • Days: 4460 days ago
  • Weeks: 637 weeks ago
  • Months: 143 months ago
  • Future: 327 months' time

Errorsಸಂಪಾದಿಸಿ

  • Bad date: Error: first parameter cannot be parsed as a date or time.
  • Unknown specified magnitude: 385382697 seconds ago
  • No parameters: 0 seconds ago
  • Capitalization: 385382697 seconds ago

min_magnitudeಸಂಪಾದಿಸಿ

no seconds minutes hours days months years nonsense
-111 seconds 111 seconds ago 111 seconds ago 1 minute ago 0 hours ago 0 days ago 0 months ago 0 years ago 111 seconds ago
-30 minutes 30 minutes ago 30 minutes ago 30 minutes ago 0 hours ago 0 days ago 0 months ago 0 years ago 30 minutes ago
೧೬ ಸೆಪ್ಟೆಂಬರ್ ೨೦೨೧ Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time.
-25 hours 25 hours ago 25 hours ago 25 hours ago 25 hours ago 1 day ago 0 months ago 0 years ago 25 hours ago
1 January 2010 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago
17 November 2009 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago
20 May 1988 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago
5 months 4 months' time 4 months' time 4 months' time 4 months' time 4 months' time 4 months' time 0 years' time 4 months' time

Original version testsಸಂಪಾದಿಸಿ

  • Normal: 12 years ago
  • Minutes: 6423044 minutes ago
  • Days: 4460 days ago
  • Weeks: 637 weeks ago
  • Months: 146 months ago
  • Future: 333 months' time

Errorsಸಂಪಾದಿಸಿ

  • Bad date: Error: first parameter cannot be parsed as a date or time.
  • Unknown specified magnitude: 385382697 seconds ago
  • No parameters: 0 seconds ago
  • Capitalization: 385382697 seconds ago

min_magnitudeಸಂಪಾದಿಸಿ

no seconds minutes hours days months years nonsense
-111 seconds 111 seconds ago 111 seconds ago 1 minute ago 0 hours ago 0 days ago 0 months ago 0 years ago 111 seconds ago
-30 minutes 30 minutes ago 30 minutes ago 30 minutes ago 0 hours ago 0 days ago 0 months ago 0 years ago 30 minutes ago
೧೬ ಸೆಪ್ಟೆಂಬರ್ ೨೦೨೧ Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time.
-25 hours 25 hours ago 25 hours ago 25 hours ago 25 hours ago 1 day ago 0 months ago 0 years ago 25 hours ago
1 January 2010 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago
17 November 2009 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago 11 years ago
20 May 1988 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago 33 years ago
5 months 5 months' time 5 months' time 5 months' time 5 months' time 5 months' time 5 months' time 0 years' time 5 months' time

Now works in the futureಸಂಪಾದಿಸಿ

  • Original: 35 years' time
  • Sandbox: 35 years' time

Non-breaking spaceಸಂಪಾದಿಸಿ

Test using a non-breaking space between the number and the units (year, month, day, etc). A breaking space is used between the units and "ago" (similar to the output of Template:Start date and years ago).

These examples are placed inside a narrow <div> to force a line break. They are based on the current date and time, which is: ೨೦೨೧-೦೯-೧೬ ೧೦:೪೪:೫೭ (UTC). If that is not correct, click Purge to update the page.

Example Current output Sandbox output
{{Time ago|-13 months|min_magnitude=years}}
1 year ago
1 year ago
{{Time ago|-32 days|min_magnitude=months}}
1 month ago
1 month ago
{{Time ago|-25 hours|min_magnitude=days}}
1 day ago
1 day ago
{{Time ago|-65 minutes|min_magnitude=hours}}
1 hour ago
1 hour ago
{{Time ago|-75 seconds|min_magnitude=minutes}}
1 minute ago
1 minute ago
{{Time ago|-15 seconds|min_magnitude=seconds}}
15 seconds ago
15 seconds ago

Blank values of agoಸಂಪಾದಿಸಿ

  • He has worked for FooBar Corp for the last {{time ago|1 January 1985|ago=}}.
Main

He has worked for FooBar Corp for the last 36 years.

Sandbox

He has worked for FooBar Corp for the last 36 years.