31
submitted 10 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
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".

this post was submitted on 06 Nov 2023
31 points (69.1% liked)

Programmer Humor

32060 readers
2643 users here now

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

Rules:

founded 5 years ago
MODERATORS