From: "s.ross" Date: 2009-09-01T03:08:22+09:00 Subject: Re: Time Format Conversions gem install chronic Chronic.parse("3:00 PM").strftime('%H:%M:%S') => "15:00:00" Does this work? On Aug 31, 2009, at 10:27 AM, Alpha Blue wrote: > Hi all, > > So, I'm trying to find out the best practice for converting a time > format from the following: > > "3:00 PM" > "10:00 PM" > "1:00 AM" > > TO: > > "15:00:00" > "22:00:00" > "01:00:00" > > Can anyone help me out on what I need to do here? I'm pulling strings > that need to be parsed and converted from > to the listings above. > > Any help would be appreciated. > > Many thanks in advance. > > JD > -- > Posted via http://www.ruby-forum.com/. >