How to use the luxon.Info.monthsFormat function in luxon

To help you get started, we’ve selected a few luxon examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github moment / luxon / test / info / info.js View on Github external
it('Info.monthsFormat lists all the months', () => {
    expect(Info.monthsFormat('long', 'en')).toEqual(
      ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
    );

    //this passes, but is wrong. These are the same as the standalone values
    //t.deepEqual(
    //  Info.monthsFormat('long', 'ru'),
    //  ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря']);

    expect(Info.monthsFormat('short', 'en')).toEqual(
      ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    );

    expect(Info.monthsFormat('numeric', 'en')).toEqual(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']);
  });
github moment / luxon / test / info / info.js View on Github external
it('Info.monthsFormat lists all the months', () => {
    expect(Info.monthsFormat('long', 'en')).toEqual(
      ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
    );

    //this passes, but is wrong. These are the same as the standalone values
    //t.deepEqual(
    //  Info.monthsFormat('long', 'ru'),
    //  ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря']);

    expect(Info.monthsFormat('short', 'en')).toEqual(
      ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    );

    expect(Info.monthsFormat('numeric', 'en')).toEqual(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']);
  });
github moment / luxon / test / info / info.js View on Github external
it('Info.monthsFormat lists all the months', () => {
    expect(Info.monthsFormat('long', 'en')).toEqual(
      ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
    );

    //this passes, but is wrong. These are the same as the standalone values
    //t.deepEqual(
    //  Info.monthsFormat('long', 'ru'),
    //  ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря']);

    expect(Info.monthsFormat('short', 'en')).toEqual(
      ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    );

    expect(Info.monthsFormat('numeric', 'en')).toEqual(['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']);
  });
github flow-typed / flow-typed / definitions / npm / luxon_v0.2.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems(): Array);
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.weekdays("long", { foo: "bar" }): Array);
github flow-typed / flow-typed / definitions / npm / luxon_v1.x.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.weekdays("long", { foo: "bar" }): Array);
github flow-typed / flow-typed / definitions / npm / luxon_v1.x.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems(): Array);
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
github flow-typed / flow-typed / definitions / npm / luxon_v0.4.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.weekdays("long", { foo: "bar" }): Array);
github flow-typed / flow-typed / definitions / npm / luxon_v0.2.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems(): Array);
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
github flow-typed / flow-typed / definitions / npm / luxon_v1.x.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.weekdays("long", { foo: "bar" }): Array);

(Info.weekdaysFormat("long"): Array);
(Info.weekdaysFormat("narrow", { locale: "de-DE" }): Array);
(Info.weekdaysFormat("short", { numberingSystem: "arab" }): Array);
(Info.weekdaysFormat("long", {
  numberingSystem: "latn",
github flow-typed / flow-typed / definitions / npm / luxon_v0.4.x / flow_v0.104.x- / test_luxon.js View on Github external
(Info.meridiems(): Array);
(Info.meridiems({ locale: "de-DE" }): Array);

(Info.months("long"): Array);
(Info.months("narrow", { locale: "de-DE" }): Array);
(Info.months("short", { numberingSystem: "arab" }): Array);
(Info.months("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.months("long", { foo: "bar" }): Array);

(Info.monthsFormat("long"): Array);
(Info.monthsFormat("narrow", { locale: "de-DE" }): Array);
(Info.monthsFormat("short", { numberingSystem: "arab" }): Array);
(Info.monthsFormat("2-digit", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError
(Info.monthsFormat("long", { foo: "bar" }): Array);

(Info.weekdays("long"): Array);
(Info.weekdays("narrow", { locale: "de-DE" }): Array);
(Info.weekdays("short", { numberingSystem: "arab" }): Array);
(Info.weekdays("long", {
  numberingSystem: "latn",
  outputCalendar: "buddhist"
}): Array);
// $ExpectError