3 ms·
I hope http://momentjs.com/ http://momentjs.com/ is not one of libraries that falls into "Many people write libraries without knowing much about the domain." I
by crisnoble 10y ago
I hope http://momentjs.com/ http://momentjs.com/ is not one of libraries that falls into "Many people write libraries without knowing much about the domain." I have used it many times and it is the best one I have come across.
Timezones conversion is super hard, which is the exact reason I rely on libraries rather than trying to reinvent the wheel.
- camhenlin 10y agoSaw the title and came here to write about moment. I work on a large code base that had considerable amounts of code related to time conversions in numerous different places, each handled differently with different bugs, and I've slowly been moving things towards just using moment. It's been a huge time saver and has fixed issues everywhere I've ended up using. Probably one of the most useful libraries around for sure!
- ShellfishMeme 10y agoMomentJS is great and offers pretty much everything you need time manipulation wise. That being said, I've spent many hours debugging problems with moment because many operations mutate the 'moment' instance that you're working with. If you generate some moments and need to reuse them for multiple calculations, you need to constantly clone them. I wish there was a moment-like library with good performance that's immutable.