Template:Time ago/testcases

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

Errors

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

Now works in the future

 * Original: 33.03600374080416 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.60223826835997 years ago.


 * Sandbox

He has worked for FooBar Corp for the last.

Blank future values of ago



 * Main

23.59127936425038 years ago


 * Sandbox




 * Main


 * Sandbox