I wasn't clear enough. But in a contry where the sun rise at 20:00, the weekday looks like:
- day 1: Monday morning to Tuesday evening
- day 2: Tuesday morning to Wednesday evening
- day 3: Wednesday morning to Thurday,
- โฆ
And phares like "let's meet on Tuesdayโ without hour indication could either mean end of day 1 or start of day 2. Likewise "let's meet the 20thโ (assuming the 20th is a Tuesday) could either mean end of day 1 or beggining of day 2.
--
And alternative be to have
- day 1 == Monday == โend of the 19thโ to โthe start of the 20thโ
- day 2 == Tuesday == โend of the 20thโ to โthe start of the 21stโ
- day 3 == Monday == โend of the 21stโ to โthe start of the 22ndโ
- โฆ
Which solve the issue of "let's meet on Tuesdayโ, but not โlet's meet the 20thโ.
Read your own code that you wrote a month ago. For every wtf moment, try to rewrite it in a clearer way. With time you will internalize what is or is not a good idea. Usually this means naming your constants, moving code inside function to have a friendly name that explain what this code does, or moving code out of a function because the abstraction you choose was not a good one. Since you have 10 years of experience it's highly possible that you already do that, so just continue :)
If you are motivated I would advice to take a look to Rust. The goal is not really to be able to use it (even if it's nice to be able able to write fast code to speed up your python), but the Rust compiler is like a very exigeant teacher that will not forgive any mistakes while explaining why it's not a good idea to do that and what you should do instead. The quality of the errors are crutial, this is what will help you to undertand and improve over time. So consider Rust as an exercice to become a better python programmer. So whatever you try to do in Rust, try to understand how it applies to python. There are many tutorials online. The official book is a good start. And in general learning new languages with a very different paradigm is the best way to improve since it will help you to see stuff from a new angle.