Skip to content

Instantly share code, notes, and snippets.

View chrisvanhill's full-sized avatar

Christoph Ambichl chrisvanhill

View GitHub Profile
@chrisvanhill
chrisvanhill / gist:874130
Created March 17, 2011 10:30
Ruby date and time formats
Letter Output Example
%A full day of week
%a abbrev day of week
%B full month name
%b abbrev month name
%C century (first two digits of year)
%c Day, month, time. year Thu Mar 17 11:20:10 2011
%D western format with slashes mm/dd/yy
%d day of month (zero-padded) 02
%e day of month (space-padded) _2