Why is “same day next month” not always a simple calculation?
Show answer & explanation
Answer: Because months have different lengths, so some dates do not map neatly
Because months have different lengths, so some dates do not map neatly ✓ — Correct! Calendar arithmetic is tricky because months vary in length, so dates like January 31 do not fit neatly into every following month.
Because computers stop counting after 30 days — Wrong. Computers do not stop counting after 30 days.
Because time APIs only support weeks, not months — Wrong. Time APIs do support months; the challenge is that month arithmetic follows calendar rules, not fixed durations.
Go deeper: Gregorian calendar
🚀 Play today's quiz — new questions dailyMore Technology questions
- Why can Cloudflare's lava-lamp camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- If an attacker learns a pseudorandom generator's seed and algorithm after watching several outputs, why can the later outputs become reconstructable?
- If a phone game shuffle and a physical noise source both look messy, what makes only one useful for security against someone who knows the code?
- At parking-lot speed, why do quiet EVs need alert sounds before tire noise helps?
- Why does the Ferrari 296 cabin sound duct take sound before exhaust treatment?
- Why do sound engineers tune engine orders instead of just making a Ferrari-like exhaust louder?
