in reply to RFC: Seconds2English
I assembled the elements like "4 minutes" in an array, and found truncating them to be useful for most human-scale messages. Most users don't care about the lesser-significant items. Thus, "4 years, 6 months, 3 weeks, 3 days, 17 hours, 52 minutes, and 40 seconds" would get chopped to two or three units, giving "4 years, and 6 months".# will update this box tonight
I was also working on a 'fuzzy' version which would give nice approximation according to the remainder: "nearly 4 years and 7 months".
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: RFC: Seconds2English
by Limbic~Region (Chancellor) on Jul 18, 2003 at 19:59 UTC | |
by demerphq (Chancellor) on Jul 18, 2003 at 22:17 UTC |