Brian Buckley on 17 Dec 2005 17:58:09 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Time formatting


>> Wow

Wow indeed.  Are those codes  ('&m' and '&d') your picks or are they from C roots?

Nitpicking is this even more ruby-like?
 
def strftime(x )
    result = orig_strftime(x)
    result.gsub!(/&m/){ "#{month}" }
    result.gsub!(/&d/){ "#{day}" }
    result
end

Brian Buckley

_______________________________________________
talk mailing list
talk@phillyonrails.org
http://lists.phillyonrails.org/mailman/listinfo/talk