cm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agoI'm new to using Ruby and this tickled me pinklemmy.mlimagemessage-square53linkfedilinkarrow-up1402arrow-down14cross-posted to: programmerhumor@lemmy.ml
arrow-up1398arrow-down1imageI'm new to using Ruby and this tickled me pinklemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square53linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up2·6 hours agoSure, if you want things at midday instead of midnight.
minus-squarebestboyfriendintheworld@sh.itjust.workslinkfedilinkarrow-up10·9 hours agoNever use numbers when calculating dates. Use the data formats and constants the calendar library provides.
minus-squareLousyCornMuffins@lemmy.worldlinkfedilinkEnglisharrow-up1·6 hours agodidn’t we gain or lose 0.00000001ish of a day recently? Like from tonga exploding or antarctica melting or something i can’t remember.
minus-squarebrianary@lemmy.ziplinkfedilinkarrow-up1·4 hours agoThat kind of thing happens surprisingly often. https://en.wikipedia.org/wiki/Leap_second
365.25, surely
Sure, if you want things at midday instead of midnight.
Never use numbers when calculating dates. Use the data formats and constants the calendar library provides.
365.2425
didn’t we gain or lose 0.00000001ish of a day recently? Like from tonga exploding or antarctica melting or something i can’t remember.
That kind of thing happens surprisingly often.
https://en.wikipedia.org/wiki/Leap_second