Created
November 9, 2011 19:32
-
-
Save sn/1352657 to your computer and use it in GitHub Desktop.
Subtracting days from todays date in Ruby
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
# 1209600 is the amount of seconds in 14 days | |
d = Time.new - 1209600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment