proposal-temporal
dayjs
proposal-temporal | dayjs | |
---|---|---|
96 | 102 | |
3,167 | 46,090 | |
1.0% | - | |
9.4 | 7.5 | |
7 days ago | 3 days ago | |
HTML | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proposal-temporal
-
Is Temporal still temporal?
Temporal is the new JavaScript standard for date manipulations. It has a long, difficult journey that I want to share with you. Let's explore whether it's ready for production.
-
The long path of JavaScript - from ES6 until today.
The Temporal API, which is currently in Stage 3, is being developed to improve the current Date object, which is mostly known for its unexpected behavior. Today there are lots of date-time libraries for JavaScript, such as date-fns, moment, js-joda and a huge number of others. They all try to help with unpredictable and unexpected behavior of JavaScript Date object by adding features such as timezones, date parsing and almost everything else.
-
Publish pure ESM npm package written in TypeScript to JSR
I'm developing vremel, an utility library for Temporal API (similar to date-fns for Date). It's a pure ESM package1 and written in TypeScript.
-
Handling dates in JavaScript with Tempo
Even with the initial pitfalls of JavaScript dates, the ecosystem managed to tackle those challenges with good libraries. Some use the native JavaScript date while others have instead created their own robust tools to make up for the quirks JavaScript dates might have. With the JavaScript Temporal API about to roll out, working with dates and time in JavaScript will only improve.
-
Mastering Time: State-of-the-Art Date Handling in JavaScript
Temporal API
- TC39 Temporal Proposal
- Handling Hindu Lunisidereal Calendars
- Replacing Date with Temporal – ECMAScript Stage 3 Proposal
- Temporal, a modern date/time API for ECMAScript
- Temporal proposal reaches stage 4
dayjs
-
You're parsing URLs wrong.
The fact that moment.js or day.js needs to exist in 2024 bothers me a lot.
-
How to parse and format a date in JavaScript
Day.js (45.3k ⭐) — A minimalist library that offers an excellent API without much overhead. It is very similar to Moment.js but much smaller in size. It also supports plugins for additional features.
-
Handling dates in JavaScript with Tempo
Day.js is a lightweight alternative to the now deprecated date and time handling library, Moment.js. It is written in JavaScript and uses a similar API to Moment.js. Day.js is sufficient for date operations such as parsing, manipulation, and display. It is designed for use on both the browser and the Node.js runtime.
-
JavaScript Compare Dates: From Chaos to Clarity
Day.js is awesome for comparing dates! You just need to make dayjs objects from whatever dates you have. You can use the dayjs() function with different inputs and formats. Here’s an example:
-
Mastering Time: State-of-the-Art Date Handling in JavaScript
Similar API to Moment.js: Day.js provides a familiar API, making it easier for developers previously using Moment.js to transition.
-
The Day.js Dilemma: How Should We Handle OSS Maintainers Going MIA?
As web developers, we heavily rely OSS packages. One popular example is Day.js, a JS lib for parsing, validating, manipulating, and formatting dates. It's a widely-used alternative to Moment, with over 17mil weekly downloads on npm.
A critical bug was discovered in Day.js (see: https://github.com/iamkun/dayjs/pull/2118) causing incorrect date manipulation (add, subtract) when in UTC TZ. This could have severe implications for any project relying on Day.js for date-related functionality. However, the maintainer of the project appears to be unresponsive, leaving the bug unresolved and the future of the library uncertain.
This raises some important questions for our community:
- At what point should we consider a widely-used OSS project "abandoned" if the maintainer is unresponsive?
- Is forking the project the best solution, or should we first try to reach out to the maintainer through other channels?
- Are there established community guidelines around responsiveness expectations for widely-used OSS projects?
- What are successful examples of community-driven forks or maintenance after a maintainer stepped away?
I am very aware that many of these developers give their spare time for free for these projects, with little or no payment, and I am very thankful for all their work. This developer does get some money (a small amount?) through OpenCollective, and possibly also works for a company (in China?) that makes a UI library, which I think uses Day.js internally.
-
JavaScript Libraries That You Should Know
11. DayJs
-
Best date library to handle timezones in React Native?
DayJS has issues with its timezone plugin not compatible with Hermes engine https://github.com/iamkun/dayjs/issues/1942
-
Everything you need to know about Date in Programming
Date.js
-
Complete Tutorial: React Admin Panel with refine and daisyUI
We have to install refine's support packages for React Table and React Hook Form. We are using Tailwind Heroicons for our icons, the Day.js library for time calculations and Recharts library to plot our charts for KPI data. So, run the following and we are good to go:
What are some alternatives?
moment - Parse, validate, manipulate, and display dates in javascript.
Luxon - ⏱ A library for working with dates and times in JS
date-fns - ⏳ Modern JavaScript date utility library ⌛️
You-Dont-Need-Momentjs - List of functions which you can use to replace moment.js + ESLint Plugin
moment-timezone - Timezone support for moment.js
js-joda - :clock2: Immutable date and time library for javascript
countdown.js - Super simple countdowns.
sdk-typescript - Temporal TypeScript SDK
Mongoose - MongoDB object modeling designed to work in an asynchronous environment.