Created
July 10, 2014 05:55
-
-
Save brainwire/e0921d544d563b8d8efa to your computer and use it in GitHub Desktop.
rails time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<time | |
datetime="<%= @pen.created_at.strftime("%Y-%m-%dT%H:%M") %>" | |
title="<%= @pen.created_at.strftime("%Y-%m-%d at %I:%M %p") %>"> | |
<%= @pen.created_at.strftime("%B %d, %Y") %> | |
</time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment