From: tony summerfelt Date: 2005-03-09T06:17:44+09:00 Subject: Re: Time.parse bug? On Mon, 7 Mar 2005 11:35:52 +0900, you wrote: >That means invalid format error. %r only accepts hours 1..12, use %R >instead. my attempts to make it more generic have hit a brick wall is there anyway to designate text/numbers/etc that's on either side of the formatted date? sample="some alphanumeric #ddg%^324&78* 08 Mar 15:17:18 more text" t= Time.strptime(logline, "%d %b %R") p t.strftime("%d %b %I:%M:%S %p") of course gives me the value_at error again... http://home.cogeco.ca/~tsummerfelt1 telnet://ventedspleen.dyndns.org