Last active
August 29, 2015 14:23
-
-
Save bookercodes/4271eea059b4e0a3cc83 to your computer and use it in GitHub Desktop.
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
var time = "unix_timestamp here"; | |
var then = moment.unix(time); | |
var by = moment(then).add({ days: 1 }); | |
var expired = moment().isAfter(by); |
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
var time = "unix_timestamp here"; | |
var then = moment.unix(); | |
var now = moment(); | |
var expired = now.isAfter(then) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment