I think my code will be OK...i.imgflip.comimage perishthethought ( @perishthethought@lemm.ee ) cake Programmer Humor@lemmy.mlEnglish • 7 months ago message-square25fedilinkarrow-up1177
arrow-up1177imageI think my code will be OK...i.imgflip.com perishthethought ( @perishthethought@lemm.ee ) cake Programmer Humor@lemmy.mlEnglish • 7 months ago message-square25fedilink
minus-square perishthethought ( @perishthethought@lemm.ee ) cakeOPlinkfedilinkEnglish7•7 months agoYour comment made me go look at the source for moment.js. It has “leap” 13 times and the code looks correct. I assume they test stuff like this.
minus-square 👍Maximum Derek👍 ( @Bishma@discuss.tchncs.de ) linkfedilinkEnglish4•7 months agoYeah, I’m generally using the common data/time libraries in most (if not all) languages and I’m pretty sure they’ve all been through more than 1 leap year at this point. I just never 100% trust the code I don’t control - 99.9% maybe, but never 100.
Your comment made me go look at the source for moment.js. It has “leap” 13 times and the code looks correct. I assume they test stuff like this.
Yeah, I’m generally using the common data/time libraries in most (if not all) languages and I’m pretty sure they’ve all been through more than 1 leap year at this point. I just never 100% trust the code I don’t control - 99.9% maybe, but never 100.