MCPcopy
hub / github.com/moment/luxon

github.com/moment/luxon @3.7.2 sqlite

repository ↗ · DeepWiki ↗ · release 3.7.2 ↗
626 symbols 1,842 edges 95 files 296 documented · 47%
README

Luxon

MIT License Build Status NPM version Coverage Status PRs welcome

Luxon 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.
  • Native time zone and Intl support (no locale or tz files).

Download/install

Download/install instructions

Documentation

Development

See contributing.

Phasers to stun

Core symbols most depended-on inside this repo

toFormat
called by 334
src/interval.js
fromObject
called by 290
src/duration.js
fromISO
called by 180
src/interval.js
set
called by 174
src/interval.js
fromFormat
called by 170
src/datetime.js
plus
called by 143
src/duration.js
reconfigure
called by 128
src/duration.js
toObject
called by 110
src/duration.js

Shape

Method 370
Function 204
Class 52

Languages

TypeScript100%

Modules by API surface

src/datetime.js150 symbols
src/impl/locale.js56 symbols
src/duration.js54 symbols
src/interval.js46 symbols
src/impl/util.js32 symbols
src/impl/tokenParser.js27 symbols
src/impl/formatter.js25 symbols
src/impl/regexParser.js22 symbols
src/errors.js21 symbols
src/zones/IANAZone.js18 symbols
src/zones/fixedOffsetZone.js15 symbols
src/info.js15 symbols

Dependencies from manifests, versioned

@babel/core7.18.6 · 1×
@babel/node7.18.6 · 1×
@babel/plugin-external-helpers7.18.6 · 1×
@babel/preset-env7.18.6 · 1×
@rollup/plugin-babel5.3.0 · 1×
@rollup/plugin-commonjs19.0.0 · 1×
@rollup/plugin-node-resolve13.0.0 · 1×
babel-jest28.1.2 · 1×
benchmarklatest · 1×
codecovlatest · 1×
documentationlatest · 1×
fs-extra6.0.1 · 1×

For agents

$ claude mcp add luxon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact