From: tony summerfelt Date: 2005-03-08T02:04:15+09:00 Subject: Re: Time.parse bug? On Mon, 7 Mar 2005 11:35:52 +0900, you wrote: >|> p Time.strptime(log, "%d/%m/%y %X") >|i tried changing it to Time.strptime(log, %d/%m/%y %r") >That means invalid format error. %r only accepts hours 1..12, use %R >instead. ok, i see now...once i have it parse properly then i can format it with strftime...the following worked for me which was what i organically wanted: sample = "02/03/05 22:30:49" t= Time.strptime(sample, "%d/%m/%y %R") p t.strftime("%d %b %I:%M:%S %p") thanks once again :) http://home.cogeco.ca/~tsummerfelt1 telnet://ventedspleen.dyndns.org