08 Mar '14, 12pm

strftime() method is used for formatting date and time in Ruby on Rails: #RidingRails

m blank-padded ( 1..12) %-m no-padded (1..12) %B - The full month name (``January'') %^B uppercased (``JANUARY'') %b - The abbreviated month name (``Jan'') %^b uppercased (``JAN'') %h - Equivalent to %b %d - Day of the month, zero-padded (01..31) %-d no-padded (1..31) %e - Day of the month, blank-padded ( 1..31) %j - Day of the year (001..366) Time (Hour, Minute, Second, Subsecond): %H - Hour of the day, 24-hour clock, zero-padded (00..23) %k - Hour of the day, 24-hour clock, blank-padded ( 0..23) %I - Hour of the day, 12-hour clock, zero-padded (01..12) %l - Hour of the day, 12-hour clock, blank-padded ( 1..12) %P - Meridian indicator, lowercase (``am'' or ``pm'') %p - Meridian indicator, uppercase (``AM'' or ``PM'') %M - Minute of the hour (00..59) %S - Second of the minute (00..59) %L - Millisecond of the second (000..999) %N - Fractional seconds digits, default is 9 di...

Full article: http://apidock.com/ruby/DateTime/strftime

Tweets

Getting ruby version complaints with the @herok...

pivotallabs.com 08 Mar '14, 6pm

If you're using date/time formats in Ruby, Python, C or PHP, this website is pretty slick for testing your formats. http:/...

@schneems it might even be worth talking to som...

guides.rubyonrails.org 05 Mar '14, 7pm

Not all caches will reliably cache content where the filename only differs by query parameters Steve Souders recommends , ...

Debugging Rails Applications With ruby-debug | ...

intridea.com 01 Mar '14, 5pm

My associate, Yong Zhi, wrote a great blog post on how to debug a Ruby application, a standalone script, or a full-stacked...

Smarter Rails Seeding with Sprig

rubyflow.com 06 Mar '14, 3pm

Smarter Rails Seeding with Sprig Posted by dce on March 06, 2014 — 0 comments Announcing Sprig , a new gem for better seed...