On Fri, 4 Mar 2005 08:17:19 +0900, you wrote: > >def Time.strptime(date, fmt) > Time.mktime(*Date._strptime(date, fmt).values_at(:year, :mon, :mday, :hour, :min, :sec, :zone, :wday)) >end > log = "02/03/05 22:30:49" > 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... http://home.cogeco.ca/~tsummerfelt1 telnet://ventedspleen.dyndns.org