Risultati di ricerca
A powerful, modern, and friendly wrapper for JavaScript dates and times. DateTimes, Durations, and Intervals; Immutable, chainable, unambiguous API. Native time zone and Intl support (no locale or tz files) GitHub Get started
Tokens can be escaped by wrapping with single quotes. The duration will be converted to the set of units in the format string using Duration#shiftTo and the Durations's conversion accuracy setting.
Immutable date wrapper. Latest version: 3.5.0, last published: a month ago. Start using luxon in your project by running `npm i luxon`. There are 5565 other projects in the npm registry using luxon.
4 apr 2024 · DateTime, Duration, and Interval types. Immutable, chainable, unambiguous API. Parsing and formatting for common and custom formats. Native time zone and Intl support (no locale or tz files).
20 apr 2017 · ISO 8601 is the most widely used set of string formats for dates and times. Luxon can parse a wide range of them, but provides direct support for formatting only a few of them: dt.toISO(); //=> '2017-04-20T11:32:00.000-04:00' dt.toISODate(); //=> '2017-04-20' dt.toISOWeekDate(); //=> '2017-W17-7' dt.toISOTime(); //=> '11:32:00.000-04 ...
Standalone TokenFormat TokenDescriptionExamplecEday of the week, as number from 1-7 ...3cccEEEday of the week, as an abbreviate ...WedccccEEEEday of the week, as an unabbreviated ...WednesdaycccccEEEEEday of the week, as a single localized ...WLuxon is a library for working with dates and times in JavaScript. DateTime.now ().setZone ("America/New_York").minus ( { weeks: 1 }).endOf ("day").toISO (); Upgrading to 3.0. Guide. Features. DateTime, Duration, and Interval types. Immutable, chainable, unambiguous API. Parsing and formatting for common and custom formats.
12 gen 2024 · Luxon.js is a fully open-source JavaScript library designed for time and date manipulation. In this ever-evolving web development landscape, accurate date and time representation remains crucial for various applications, from scheduling events to handling data analysis spanning various time zones.