Skip to content

Instantly share code, notes, and snippets.

@Roger-luo
Created July 29, 2020 23:43
Show Gist options
  • Save Roger-luo/08f4e08103648039cc3e483f17b623ec to your computer and use it in GitHub Desktop.
Save Roger-luo/08f4e08103648039cc3e483f17b623ec to your computer and use it in GitHub Desktop.
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