Mike Zornek on 16 Dec 2005 21:37:29 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] Time formatting


I'm doing some custom time formatting in a template of mine. While looking
through the formats allowed I'm amazed there is no way to represent month or
day as a digit without the leading zero in Ruby:

http://www.ruby-doc.org/core/classes/Time.html#M000237

In PHP I would just use %j

http://www.php.net/manual/en/function.date.php

Am I missing something?

~ Mike
-- 
http://MikeZornek.com


_______________________________________________
talk mailing list
talk@phillyonrails.org
http://lists.phillyonrails.org/mailman/listinfo/talk