From: Siep Korteling Date: 2009-09-01T06:11:09+09:00 Subject: Re: Time Format Conversions Steve Ross wrote: > Oops. > > $ gem install chronic > $ irb > > require 'chronic' > > Chronic.parse("3:00 PM").strftime('%H:%M:%S') > => "15:00:00" The standard library 'time' parses this too: require 'time' puts Time.parse("3:00 PM").strftime('%H:%M:%S') => 15:00:00 hth, Siep -- Posted via http://www.ruby-forum.com/.