Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 16th, 2013  |  syntax: None  |  size: 0.20 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Date.today.strftime "%b %d, '%y"
  2. Time.now.strftime "%I:%M%p"
  3.        
  4. # config/locales/custom.yml
  5. custom:
  6.   time:
  7.     formats:
  8.       short: "%b %d, '%y"
  9.        
  10. <p><%= l Time.now, :format => :short %></p>
clone this paste RAW Paste Data