Skip to content

Instantly share code, notes, and snippets.

@panmari
Created August 16, 2015 18:10
Show Gist options
  • Save panmari/8edf62a3539c3bc17e5b to your computer and use it in GitHub Desktop.
Save panmari/8edf62a3539c3bc17e5b to your computer and use it in GitHub Desktop.
2.2.1 :001 > I18n.locale = :'pt-BR'
=> :"pt-BR"
2.2.1 :002 > I18n.l(Date.new, format: :very_long)
=> "Segunda, 01 de Janeiro de -4712, 00:00 h"
2.2.1 :003 > Date.new.strftime("%A, %d de %B de %Y, %H:%M h")
=> "Monday, 01 de January de -4712, 00:00 h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment