Template:Time ago/testcases

Trailing space tests
1 Jan 2012:
 * >12.665873659246573 years ago<
 * >12.665873659246573 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.8572998565449 years from now

Errors

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

Now works in the future

 * Original: 32.95592999343607 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.682312015728044 years ago.


 * Sandbox

He has worked for FooBar Corp for the last.

Blank future values of ago



 * Main

23.671353111650173 years ago


 * Sandbox




 * Main


 * Sandbox