Whoops - passing in something like 3612 would get you "1 hour, 12 seconds". Thanks for pointing that out, Johnathan. Also, the module doesn't actually do reverse translations. Zefram, in regards to my module being about English text, I did my best to make it pseudo-language portable - users of the module can pass in different values to replace names with(so they could rename "second" to "foo", and "seconds" to "bar", for example) - although by default it uses English words.
On Jan 12, 2008 3:56 PM, Zefram <[EMAIL PROTECTED]> wrote: > Ken Irving wrote: > > convert seconds into a "readable" format 344 => 5m44s > > > >This sounds similar to your module, except for being compact vs verbose. > > I think Convert::Age doesn't qualify as processing natural language. > Its encoded format is actually the ISO 8601 duration format, although C::A > doesn't document that aspect and doesn't explain its interpretation of the > variable-size units. Anyway, the ISO 8601 format, although derived from > English abbreviations, is meant to be language-neutral. Luke's module > is definitively about English text, which is quite a different job. > > -zefram > -- Luke Hutscal http://girasquid.com
