Created
March 7, 2013 16:11
-
-
Save SimplGy/5109152 to your computer and use it in GitHub Desktop.
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
Date.prototype.addHours = (h) -> | |
date = new Date @ | |
date.setHours @getHours() + h | |
date | |
Date.prototype.isWeekday= -> | |
weekdays = [1..5] # Javascript days are integers from 0-6 starting at Sunday | |
debugger | |
_.contains weekdays, @.getDay() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment