Skip to main content
3 of 4
added 38 characters in body
Alnitak
  • 144
  • 6

C, 35, 34 27 bytes

f(n){n/=time(0)/86400%7-3;}

-7 bytes with thanks to @MartinEnder and @Dennis

Try it online!

Alnitak
  • 144
  • 6