age
The CLI tool "age" displays the time difference between two time values.
The age (time difference) can be calculated from ISO dates, UNIX timestamps, and file modification timestamps.
Output is available either as time units or as a number. The following output formats are possible:
- with short time units (default), e.g., "1d 15h 30m 45s"
- with long time units, e.g., "1 day, 15 hours, 30 minutes, 45 seconds"
- with long time units in German, e.g., "1 Tag, 15 Stunden, 30 Minuten, 45 Sekunden"
- as a number in whole seconds
- as a number in whole minutes
- as a number in whole hours
- as a number in whole days
The current time and all given time values are treated as UTC.
Download
| License: | Freeware |
|---|---|
| Languages: | English, German (readme only) |
| Characteristics: | CLI, portable |
| Required: | Windows 11 MacOS 26, Apple Silicon (ARM) |
Examples
%> ./age -d 2025-01-01T00:00:00
1Y 6M 28D 9h 50m 9s ago
%> ./age ./age
1h 34m 28s ago
%> ./age -l /users
/users:
<..>: 1M 4D 5h 6m 39s ago
<.>: 28D 21h 59m 48s ago
<example>: 32s ago
<Shared>: 28D 21h 59m 4s ago
<testuser>: 1Y 3M 19D 4h 55m 35s ago
.localized: 1M 4D 5h 6m 39s ago
Do you find this software useful?
Thank you for your feedback message!
Were the free content on my website helpful for you?
Support the further free publication with a donation via PayPal.