spacetime
js-joda
Our great sponsors
spacetime | js-joda | |
---|---|---|
2 | 7 | |
3,959 | 1,586 | |
- | 0.9% | |
7.5 | 7.5 | |
about 2 months ago | 9 days ago | |
JavaScript | JavaScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
spacetime
-
How do I convert a timestamp (from SQL) into this format: MM/DD/YYYY H:M:S?
spacetime https://github.com/spencermountain/spacetime
-
How to format dates without Moment.js
But even though I have decided to use Date and Intl in my projects, I still have the itch to try out the library Spacetime.
js-joda
-
Everything you need to know about Date in Programming
js-joda
-
Making your datepicker easier to work with
So first, a simple example of how this works. Using our "What is your birthday" example, we can mock up this code. Note: I'm using TypeScript because it enforces the concepts at compile time, but the JsJoda library itself enforces the concepts at runtime so that we get the best of both.
-
[HELP] Time elapsed since midnight breaks on days when DST changes
Dealing with human dates is non-trivial thanks to localization. The easiest thing to do is to start with something zone agnostic (like UTC or epoch) do your date calculation, and then shift that into the locale you want. date-fns is fine for basic date math, but if you want something more robust, with a more cohesive API, I'd recommend js-joda.
-
You don't (may not) need Moment.js
How come the js-joda library is never mentioned in discussions about javascript date/time libraries? its API is perfect and it has been around forever. but instead the community seems to keep inventing more and more new datetime libraries. i don't understand why js-joda seems to be ignored
https://js-joda.github.io/js-joda/
- Temporal: Getting started with JavaScript's new date time API
-
Updates from the 81st meeting of TC39
I've been getting by with js joda. Temporal is a welcome addition.
-
How to format dates without Moment.js
Support for the domain models LocalDate, LocalDateTime, ZonedDateTime, Instant, Duration and Period. Also, supports IANA timezone, adding the plugin @js-joda/timezone you'll have access to the IANA timezone database with all the timezones available.
What are some alternatives?
Luxon - ⏱ A library for working with dates and times in JS
ezTime - ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
date-fns - ⏳ Modern JavaScript date utility library ⌛️
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
tz.js - A fast, lightweight, zero-dependency library to translate between Time Zones and UTC with native Intl.DateTimeFormat in ~100 LoC.
moment - Parse, validate, manipulate, and display dates in javascript.
proposal-temporal - Provides standard objects and functions for working with dates and times.
You-Dont-Need-Momentjs - List of functions which you can use to replace moment.js + ESLint Plugin
ngx-moment - moment.js pipes for Angular
proposal-temporal-v2 - Future additions to Temporal