Sheldan@programming.dev to Programming@programming.dev · 2 days agonew Date("wtf")jsdate.wtfexternal-linkmessage-square51fedilinkarrow-up1222arrow-down13cross-posted to: programmer_humor@programming.devhackernewslobsters
arrow-up1219arrow-down1external-linknew Date("wtf")jsdate.wtfSheldan@programming.dev to Programming@programming.dev · 2 days agomessage-square51fedilinkcross-posted to: programmer_humor@programming.devhackernewslobsters
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up2·13 hours agoThe built-in lib is fine for basic stuff unless you do some crazy shit like expecting "2" to parse as a valid date.
minus-squareTanoh@lemmy.worldlinkfedilinkarrow-up3·12 hours agoFor very basic things maybe, but it has a lot of other weird problems and restrictions. Mutability, no real timezone support, very limited arithmetic, to name a few. As soon as you move beyond the very basic, you want someting more robust.
The built-in lib is fine for basic stuff unless you do some crazy shit like expecting
"2"
to parse as a valid date.For very basic things maybe, but it has a lot of other weird problems and restrictions. Mutability, no real timezone support, very limited arithmetic, to name a few. As soon as you move beyond the very basic, you want someting more robust.