summaryrefslogtreecommitdiff
path: root/node_modules/luxon/src/impl/formats.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/luxon/src/impl/formats.js')
-rw-r--r--node_modules/luxon/src/impl/formats.js176
1 files changed, 176 insertions, 0 deletions
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,
+};