From: Matthias Reitinger Date: 2008-08-26T20:52:48+09:00 Subject: Re: Uptime Since... (#174) Jes炭s Gabriel y Gal叩n wrote: > Anybody knows what's the format for a machine that's been up more than > a day, but less than two? > Is it "up 1 day" or "up 1 days"? Anyway I'm thinking changing that > part of the regexp to "day(?:s)?" > should suffice to take into account both cases, but I can't test it > right now. On the machines I know (several *nixes) it is neither "up 1 day" nor "up 1 days", but "up 1 day(s)". To make matters worse some versions of `uptime` yield a localized message: --- 1:49pm in Betrieb 6 Tag(e), 9:12, 12 Benutzer, Durchschnittslast: 3,11, 3,13, 3,19 --- Maybe a more general approach is needed to account for these corner cases. -- Posted via http://www.ruby-forum.com/.