in reply to Re: Descriptive Relative Time
in thread Descriptive Relative Time
Time::Duration is probably the right one. It converts seconds into an English equivalent (e.g. "20 days, 4 hours, 13 minutes, and 25 seconds ago") with support for truncating to an approximation (e.g. "20 days, 4 hours ago").
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Descriptive Relative Time
by Limbic~Region (Chancellor) on Aug 02, 2005 at 15:14 UTC |