Gavin Kistner schrieb: > On Sep 27, 2005, at 7:19 AM, Pit Capitain wrote: > >> Recently I've been representing time intervals by two numbers: months >> and seconds. With this representation it is possible to differentiate >> between "1 year" and "365 days": >> >> 1 year = 12 months (and 0 seconds) >> 365 days = (0 months and) 365 * 24 * 60 * 60 seconds > > While precise, I claim that that's not very human-friendly. > > "How long ago did I receive this email?" > "20160 seconds" > "Whaaaa? Is that long or short?" > "Er, I meant 2 weeks" > "Oh, thanks." Huh? I'm sure you know the difference between obj and obj.to_s. I use those two number representation to be able to add intervals like "1 month" to timestamps. You seem to need a string representation of time intervals, which is a different task. Regards, Pit