Need to display a date in your Rails app? First try:
Time.now.strftime "arrrround %H'ish"
To remove duplication, you imagine a time format initializer. Second try:
Then you remember the
:default localized key. Third time's a charm:
It formats based on the
en: time: formats: default: "arrrround %H'ish" date: formats: default: "arrrround %H'ish"
Dates work, too:
The same system lets you alter the display of "days ago" and "minute from now."