Skip to main content
2 of 4
added 19 characters in body
Alnitak
  • 144
  • 6

C, 35 34 bytes

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

Try it online!

Alnitak
  • 144
  • 6