Created
July 29, 2020 23:43
-
-
Save Roger-luo/08f4e08103648039cc3e483f17b623ec 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
using Dates | |
function count_hours(m) | |
days = filter(Date(2020, m, 14): Day(1):Date(2020, m+1, 13)) do day | |
!(dayname(day) in ["Saturday", "Sunday"]) | |
end | |
return length(days) * 8 | |
end | |
count_hours(7) * 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment