From: Wayne Brissette Date: 2012-03-07T20:28:33+09:00 Subject: Re: Time. to_military_time? You are correct, and I was wondering the same thing. Unless he has some OS that's not giving him the universal (except in North America) 24 hour time and using AM and PM suffixes, but then I would think the issue would be just as easy, add 12 to PM, put in the exception to when midnight happens so you don't end up with 2405 (unless that's your preference. In the Marines it was always 2400 for midnight and 0001 for one minute past). Wayne On Mar 7, 2012, at 5:22 AM, Sylvester Keil wrote: > > On Mar 7, 2012, at 10:00 AM, Robert Klemme wrote: > >> Mario Trento wrote in post #1050518: >>> Is there any time function to get military time: >>> eg. >>> >>> tim="0457" >>> Time.striptime(time,....) ==> 16:57 > > Out of curiosity, isn't '0457' the same as 4:57 AM? If that's the case, then why wouldn't the regular date parser do the job: > >