Created
June 20, 2019 17:18
-
-
Save paulomcnally/b66d1dd58b4711e6bab9480eddc64fcb 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
| date = Time.now | |
| week = (((date.mday + Date.new(date.year, date.month, 1).wday - 1) / 7) + 1) | |
| puts week |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment