Skip to main content
deleted 22 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

Python 3.8, 136 \$\cdots\$10993 10778 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:13>(dm:=s//hh%h)>0<s//h)and(0<(m:=s//h%h)<13)and(h<(m==2and d<3030-(s%4<1))or m!=2and d<31+,31+(m in(4,6,9,11)))[m!=2]

Try it online!Try it online!

Python 3.8, 136 \$\cdots\$109 107 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!

Python 3.8, 136 \$\cdots\$93 78 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:13>(m:=s//h%h)>0<s//h//h<(30-(s%4<1),31+(m in(4,6,9,11)))[m!=2]

Try it online!

added 8 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

Python 3.8, 136 \$\cdots\$111109 109107 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%h%4<1s%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!Try it online!

Python 3.8, 136 \$\cdots\$111 109 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%h%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!

Python 3.8, 136 \$\cdots\$109 107 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!

added 26 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

Python 3.8, 136 \$\cdots\$111 107109 bytes

Takes the date as an integer and returns TrueTruthy or FalseFalsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%h%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!Try it online!

Python 3.8, 136 \$\cdots\$111 107 bytes

Takes the date as an integer and returns True or False.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and(m==2and d<30-(s%h%4<1))or m!=2and d<31+(m in(4,6,9,11))

Try it online!

Python 3.8, 136 \$\cdots\$111 109 bytes

Takes the date as an integer and returns Truthy or Falsy.

lambda s,h=100:(d:=s//h//h)and(0<(m:=s//h%h)<13)and((m==2and d<30-(s%h%4<1))or m!=2and d<31+(m in(4,6,9,11)))

Try it online!

deleted 3 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
added 77 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
added 54 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
deleted 6 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
added 9 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading