From 7a52ddeba2a68388b544f529d2d92104420f77b0 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 31 Oct 2025 20:02:14 +0000 Subject: Changed from static to 11ty! --- node_modules/luxon/src/impl/formats.js | 176 +++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 node_modules/luxon/src/impl/formats.js (limited to 'node_modules/luxon/src/impl/formats.js') diff --git a/node_modules/luxon/src/impl/formats.js b/node_modules/luxon/src/impl/formats.js new file mode 100644 index 0000000..f2efaad --- /dev/null +++ b/node_modules/luxon/src/impl/formats.js @@ -0,0 +1,176 @@ +/** + * @private + */ + +const n = "numeric", + s = "short", + l = "long"; + +export const DATE_SHORT = { + year: n, + month: n, + day: n, +}; + +export const DATE_MED = { + year: n, + month: s, + day: n, +}; + +export const DATE_MED_WITH_WEEKDAY = { + year: n, + month: s, + day: n, + weekday: s, +}; + +export const DATE_FULL = { + year: n, + month: l, + day: n, +}; + +export const DATE_HUGE = { + year: n, + month: l, + day: n, + weekday: l, +}; + +export const TIME_SIMPLE = { + hour: n, + minute: n, +}; + +export const TIME_WITH_SECONDS = { + hour: n, + minute: n, + second: n, +}; + +export const TIME_WITH_SHORT_OFFSET = { + hour: n, + minute: n, + second: n, + timeZoneName: s, +}; + +export const TIME_WITH_LONG_OFFSET = { + hour: n, + minute: n, + second: n, + timeZoneName: l, +}; + +export const TIME_24_SIMPLE = { + hour: n, + minute: n, + hourCycle: "h23", +}; + +export const TIME_24_WITH_SECONDS = { + hour: n, + minute: n, + second: n, + hourCycle: "h23", +}; + +export const TIME_24_WITH_SHORT_OFFSET = { + hour: n, + minute: n, + second: n, + hourCycle: "h23", + timeZoneName: s, +}; + +export const TIME_24_WITH_LONG_OFFSET = { + hour: n, + minute: n, + second: n, + hourCycle: "h23", + timeZoneName: l, +}; + +export const DATETIME_SHORT = { + year: n, + month: n, + day: n, + hour: n, + minute: n, +}; + +export const DATETIME_SHORT_WITH_SECONDS = { + year: n, + month: n, + day: n, + hour: n, + minute: n, + second: n, +}; + +export const DATETIME_MED = { + year: n, + month: s, + day: n, + hour: n, + minute: n, +}; + +export const DATETIME_MED_WITH_SECONDS = { + year: n, + month: s, + day: n, + hour: n, + minute: n, + second: n, +}; + +export const DATETIME_MED_WITH_WEEKDAY = { + year: n, + month: s, + day: n, + weekday: s, + hour: n, + minute: n, +}; + +export const DATETIME_FULL = { + year: n, + month: l, + day: n, + hour: n, + minute: n, + timeZoneName: s, +}; + +export const DATETIME_FULL_WITH_SECONDS = { + year: n, + month: l, + day: n, + hour: n, + minute: n, + second: n, + timeZoneName: s, +}; + +export const DATETIME_HUGE = { + year: n, + month: l, + day: n, + weekday: l, + hour: n, + minute: n, + timeZoneName: l, +}; + +export const DATETIME_HUGE_WITH_SECONDS = { + year: n, + month: l, + day: n, + weekday: l, + hour: n, + minute: n, + second: n, + timeZoneName: l, +}; -- cgit v1.2.3