Template:Time ago/testcases

Trailing space tests
1 Jan 2012:
 * >12.66527726699645 years ago<
 * >12.66527726699645 years ago<
 * >          << sbx>          <<

Line break test (purge can appear at start of line) live>          << sbx>          <<

Sandbox tests

 * Normal:
 * Minutes:
 * Days:
 * Weeks:
 * Months:
 * Future:

Errors

 * Bad date:
 * Unknown specified magnitude:
 * No parameters:
 * Capitalization:

Original version tests

 * Normal:
 * Minutes:
 * Days:
 * Weeks:
 * Months:
 * Future: 24.857896248763318 years from now

Errors

 * Bad date:
 * Unknown specified magnitude:
 * No parameters:
 * Capitalization:

Now works in the future

 * Original: 32.95652638565449 years from now
 * Sandbox:

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 &lt;div&gt; to force a line break. They are based on the current date and time, which is: . If that is not correct, click to update the page.

Blank values of ago



 * Main

He has worked for FooBar Corp for the last 39.68171562354135 years ago.


 * Sandbox

He has worked for FooBar Corp for the last.

Blank future values of ago



 * Main

23.67075671943176 years ago


 * Sandbox




 * Main


 * Sandbox