Ben Bleything
11/19/2006 1:57:00 AM
On Sun, Nov 19, 2006, mind2motion@gmail.com wrote:
> Is there any way add a 0 onto the front of a Fixnum?
Sure:
num = 7
printf('%02d', num)
You can use #sprintf instead if you want to assign that back to a
variable.
That said, Timothy's suggestion of using #strftime is a much better
solution to your problem... it's just valuable to know about #(s)printf
in general.
Ben