Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm

luxon 3.4.4

Immutable date wrapper
Package summary
Share
0
issues
1
license
1
MIT
Package created
24 May 2017
Version published
12 Nov 2023
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
luxon@3.4.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of luxon 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does luxon do?

Luxon is a highly efficient JavaScript library for handling dates and times. It introduces various features such as DateTime, Duration, and Interval types, providing the ability to parse and format in common and custom formats. It's designed with an immutable, chainable, and unambiguous API with native time zone and international support.

How do you use luxon?

Luxon is incredibly easy to use due to its chainable API. To utilize Luxon, you'll first need to install the package either via npm or Yarn. Once installed, you can import Luxon into your JavaScript file and start using its various features. Below is a simple usage example:

const { DateTime } = require('luxon');

let nowInNewYork = DateTime.now().setZone('America/New_York');
let oneWeekAgo = nowInNewYork.minus({ weeks: 1 });
let endOfDay = oneWeekAgo.endOf('day');
let ISOFormatTime = endOfDay.toISO();

console.log(ISOFormatTime);

This will retrieve the time for end of the day, one week ago, in New York, and convert it to an ISO string.

Where are the luxon docs?

Luxon's extensive documentation can be found on its official website. You can access general documentation, API docs, quick tour, and many other helpful resources. Here are the links:

It's recommended to go through the documentation provided to understand Luxon's capabilities thoroughly and how to best utilize them for your JavaScript projects.