this post was submitted on 06 Nov 2023
30 points (68.3% liked)

Programmer Humor

32171 readers
1069 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ricecake@sh.itjust.works 2 points 10 months ago

Why wouldn't you just use the ruby functions for adding a month to a date?

https://ruby-doc.org/stdlib-2.5.1/libdoc/date/rdoc/Date.html#method-i-3C-3C

It seems really weird that there's so much pushback against "date time math is tricky, read the manual to find out exactly which compromise your library chose".