32
you are viewing a single comment's thread
view the rest of the comments
[-] ricecake@sh.itjust.works 2 points 2 years 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
32 points (69.5% liked)

Programmer Humor

40322 readers
104 users here now

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

Rules:

founded 6 years ago
MODERATORS