/age

A shell script to show time duration in human readable format

Primary LanguageShell

age shows a duration or age of files in human readable text.

Examples:

1. When did I installed chrome?

	$ age chrome
	/usr/local/bin/chrome: 1 day 20 hours 35 minutes 26 seconds
	
2. How long has it been since epoch?

	$ date 
	Wed Jan 27 10:46:07 MYT 2010

	$ age -s 0
	40 years 36 days 2 hours 46 minutes 7 seconds

3. Is it true that there are 31536000 seconds in one non-leap year?

	$ age -t -d 31536000
	1 year