I can't get either of these to work for me:
irb(main):001:0> t = Time.now => Sat Jan 05 17:26:26 -0500 2008 irb(main):002:0> t.strftime("%e") => "" irb(main):003:0> t.strftime("%e:") # Was the colon significant? Nope. => ":" irb(main):004:0> t.strftime("%l") => "" irb(main):005:0> t.strftime("%B") # Yeah, regular stuff works. => "January" irb(main):006:0>
Am I missing something?
Thanks!
Tom
More information about formatting options
I can't get either of these
I can't get either of these to work for me:
irb(main):001:0> t = Time.now
=> Sat Jan 05 17:26:26 -0500 2008
irb(main):002:0> t.strftime("%e")
=> ""
irb(main):003:0> t.strftime("%e:") # Was the colon significant? Nope.
=> ":"
irb(main):004:0> t.strftime("%l")
=> ""
irb(main):005:0> t.strftime("%B") # Yeah, regular stuff works.
=> "January"
irb(main):006:0>
Am I missing something?
Thanks!
Tom