Skip to main content
1 of 3
LiefdeWen
  • 3.9k
  • 16
  • 38

C# (.NET Core), 55 bytes

Try it online!

()=>{var k=0;k=System.DateTime.Now.DayOfWeek==0?1/k:0;}

Lucky that Sunday is indexed 0 in enum or else it would've needed to be (System.DayOfWeek)7

LiefdeWen
  • 3.9k
  • 16
  • 38