Created
August 28, 2011 13:31
-
-
Save dux/1176673 to your computer and use it in GitHub Desktop.
Time diff in rails for secconds since created
This file contains hidden or 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.parse(DateTime.now.to_s) - Time.parse(current_user.created_at.to_s)).to_i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment