From: ES Date: 2005-05-15T23:52:58+09:00 Subject: Re: Formatting date without leading zeros Le 15/5/2005, "nobu.nokada@softhome.net" a �crit: >Hi, > >At Sun, 15 May 2005 21:01:23 +0900, >David A. Black wrote in [ruby-talk:142696]: >> > irb(main):003:0> t.strftime('%b %-2d %Y %-2H:%-2M') >> > => "Jan 4 2005 9: 5" >> >> I hadn't thought to look there -- I'd tried something like: >> >> irb(main):002:0> Date.today.strftime('%b %-2d %Y %-2H:%-2M') >> >> which gave me: >> >> => "May %-2d 2005 %-2H:%-2M" > >It looks like system dependent. I think he was saying that Date will not do it while Time will (with Matz-ue providing an explanation for this). It is still, of course, system-dependent for Time. >> :-) > >:-( > >Nobu Nakada E -- template void quack(duck& d) { d.quack(); }