I am looking at
http://corelib.rubyonrails.org/classes/Time.html#M000245
how can I get two digit hour and minutes from a time object
Lets say I do
t = Time.now
t.hour // this returns 7 I want to get 07 instead of just 7
same for
t.min // // this returns 3 I want to get 03 instead of just 3
Thanks
How about using String.format (%) operator? Like this: