From: Yukihiro Matsumoto Date: 2005-03-07T11:35:52+09:00 Subject: Re: Time.parse bug? Hi, In message "Re: Time.parse bug?" on Fri, 4 Mar 2005 22:33:33 +0900, tony summerfelt writes: |> p Time.strptime(log, "%d/%m/%y %X") | |i tried changing it to Time.strptime(log, %d/%m/%y %r") | |and adding :merid to the values_at arguments but got: `strptime': |undefined method `values_at' for nil:NilClass (NoMethodError) | |%r, %P and %p are defined in format.rb so i'm stumped as to what the |problem is... That means invalid format error. %r only accepts hours 1..12, use %R instead. matz.