thailephan
thailephan7mo ago

Are there any up-to-date library for date and time in Deno?

Currently I working on personal project which needs an date and time library. I think about moment and date-fns firstly. After that I search for them and found out that they aren't updated at least three years. I just wonder about theirs security and trustfulness. Should I install one of them from npm because Deno is compatible with npm packages? Thanks
2 Replies
raunioroo
raunioroo7mo ago
Date and time libraries seem to be somewhat inactive since JS standard Temporal API is just around the corner, and will have/has most features you'd ever need built in. And in fact usable in Deno with - - unstable-temporal. Meanwhile, there is simple but useful and up to date https://jsr.io/@std/datetime , and like you mention could bring stuff from npm. Temporal is pretty nice though, if you are ok with using unstable stuff
@std/datetime - JSR
@std/datetime on JSR: Utilities for dealing with Date objects
thailephan
thailephanOP7mo ago
Thank you for saving my life. ❤️