This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.markdown | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
lib/ | ||
| |
test/ |
README.markdown
PrettyDates
Adds additional format specifiers to Time#strftime.
%o = ordinalized day of month (e.g. 1st, 2nd, 3rd...)
%D = day of month without leading zero
%i = hour of day in 12-hour format without leading 0
%P = lower-case am/pm indicator
Example
Time::DATE_FORMATS[:long] = "%B %o, %Y at %i:%M %P %Z"
=> June 1st, 2008 at 9:43 am EST
Time::DATE_FORMATS[:short] = "%b %D %i:%M %P"
=> Jun 1 9:43 am
Installation
./script/plugin install git://github.com/sbfaulkner/pretty_dates.git
Legal
Author: S. Brent Faulkner brentf@unwwwired.net
License: Copyright © 2008 unwwwired.net, released under the MIT license








