geoffgarside / extended_strftime

Rails plugin which adds some extra formatting tokens to strftime

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
directory test/
README
ExtendedStrftime
================

Adds some additional formatters to strftime. 

  * %o - Same as %d but with an ordinalized suffix (st, nd, rd, th)


Example
=======

t = Time.now
t.strftime("%B %o, %Y") => "May 6th, 2007"


Copyright (c) 2007 Geoff Garside, released under the MIT license