From: "David A. Black" Date: 2005-05-16T00:38:45+09:00 Subject: Re: Formatting date without leading zeros --927295978-1453014158-1116171502=:22950 Content-Type: MULTIPART/MIXED; BOUNDARY="927295978-1453014158-1116171502=:22950" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --927295978-1453014158-1116171502=:22950 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Sun, 15 May 2005, ES wrote: > > Le 15/5/2005, "nobu.nokada@softhome.net" a > =E9crit: >> 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') >>>> =3D> "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: >>> >>> =3D> "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). Yes, except for the part about Matz providing an explanation. Or did I miss that? David --=20 David A. Black dblack@wobblini.net --927295978-1453014158-1116171502=:22950-- --927295978-1453014158-1116171502=:22950--