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)
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)<<
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 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
25 ਘੰਟੇ ਪਹਿਲਾਂ
1 January 2010
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
17 November 2009
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
15 ਸਾਲ ਪਹਿਲਾਂ
20 May 1988
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
37 ਸਾਲ ਪਹਿਲਾਂ
5 months
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
Now works in the future
Original: 32 ਸਾਲਾਂ ਦਾ ਸਮਾਂ
Sandbox: 32 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: 2025-07-05 06:29:58 (UTC). If that is not correct, click Purge to update the page.
Example
Current output
Sandbox output
{{Time ago|-13 months|min_magnitude=years}}
Lua error in ਮੌਡਿਊਲ:Time_ago at line 98: attempt to index field '?' (a nil value).
1 year ago
{{Time ago|-32 days|min_magnitude=months}}
32 ਦਿਨ ਪਹਿਲਾਂ
1 month ago
{{Time ago|-25 hours|min_magnitude=days}}
25 ਘੰਟੇ ਪਹਿਲਾਂ
1 day ago
{{Time ago|-65 minutes|min_magnitude=hours}}
65 ਮਿੰਟ ਪਹਿਲਾਂ
1 hour ago
{{Time ago|-75 seconds|min_magnitude=minutes}}
75 ਸਕਿੰਟ ਪਹਿਲਾਂ
1 minute ago
{{Time ago|-15 seconds|min_magnitude=seconds}}
15 ਸਕਿੰਟ ਪਹਿਲਾਂ
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 40 ਸਾਲ ਪਹਿਲਾਂ.
Sandbox
He has worked for FooBar Corp for the last 40 years.
Blank future values of ago
{{time ago|1 January {{#expr: {{CURRENTYEAR}} + 5}}|ago=}}
Main
4 ਸਾਲਾਂ ਦਾ ਸਮਾਂ
Sandbox
4 years
{{time ago|{{#time:c|+ 1 second}}|ago=}}
Main
1 ਸਕਿੰਟ ਦਾ ਸਮਾਂ
Sandbox
1 second
Comparing hours, days, and weeks for the same time periods