minus-squarertxn@lemmy.worldtoProgrammer Humor@programming.dev•I'm new to using Ruby and this tickled me pinklinkfedilinkarrow-up25arrow-down1·4 days agotimedelta marks time in days, seconds, and microseconds. It doesn’t take leap years into account because the concept of years is irrelevant to timedelta. If you need to account for leap years, you need a different API. linkfedilink
timedelta
marks time in days, seconds, and microseconds. It doesn’t take leap years into account because the concept of years is irrelevant totimedelta
. If you need to account for leap years, you need a different API.