api documentation for moment (2.22.2)

Parse, validate, manipulate, and display dates

table of contents

  1. module moment
    1. boolean moment.suppressDeprecationWarnings
    2. function moment ()
    3. function moment.ISO_8601 ()
    4. function moment.RFC_2822 ()
    5. function moment.calendarFormat (myMoment, now)
    6. function moment.createFromInputFallback ()
    7. function moment.defineLocale (name, config)
    8. function moment.duration (input, key)
    9. function moment.invalid (flags)
    10. function moment.isDate (input)
    11. function moment.isDuration (obj)
    12. function moment.isMoment (obj)
    13. function moment.lang ()
    14. function moment.langData ()
    15. function moment.locale (key, values)
    16. function moment.localeData (key)
    17. function moment.locales ()
    18. function moment.max ()
    19. function moment.min ()
    20. function moment.months (format, index)
    21. function moment.monthsShort (format, index)
    22. function moment.normalizeUnits (units)
    23. function moment.now ()
    24. function moment.parseTwoDigitYear (input)
    25. function moment.parseZone ()
    26. function moment.relativeTimeRounding (roundingFunction)
    27. function moment.relativeTimeThreshold (threshold, limit)
    28. function moment.unix (input)
    29. function moment.updateLocale (name, config)
    30. function moment.updateOffset ()
    31. function moment.utc (input, format, locale, strict)
    32. function moment.weekdays (localeSorted, format, index)
    33. function moment.weekdaysMin (localeSorted, format, index)
    34. function moment.weekdaysShort (localeSorted, format, index)
    35. object moment.HTML5_FMT
    36. object moment.deprecationHandler
    37. object moment.duration.fn
    38. object moment.fn
    39. object moment.momentProperties
    40. string moment.defaultFormat
    41. string moment.defaultFormatUtc
    42. string moment.version
  2. module moment.duration
    1. function moment.duration (input, key)
    2. function moment.duration.invalid ()
    3. object moment.duration.fn
  3. module moment.duration.fn
    1. function moment.duration.fn._bubble ()
    2. function moment.duration.fn.abs ()
    3. function moment.duration.fn.add (input, value)
    4. function moment.duration.fn.as (units)
    5. function moment.duration.fn.asDays ()
    6. function moment.duration.fn.asHours ()
    7. function moment.duration.fn.asMilliseconds ()
    8. function moment.duration.fn.asMinutes ()
    9. function moment.duration.fn.asMonths ()
    10. function moment.duration.fn.asSeconds ()
    11. function moment.duration.fn.asWeeks ()
    12. function moment.duration.fn.asYears ()
    13. function moment.duration.fn.clone ()
    14. function moment.duration.fn.days ()
    15. function moment.duration.fn.get (units)
    16. function moment.duration.fn.hours ()
    17. function moment.duration.fn.humanize (withSuffix)
    18. function moment.duration.fn.isValid ()
    19. function moment.duration.fn.lang ()
    20. function moment.duration.fn.locale (key)
    21. function moment.duration.fn.localeData ()
    22. function moment.duration.fn.milliseconds ()
    23. function moment.duration.fn.minutes ()
    24. function moment.duration.fn.months ()
    25. function moment.duration.fn.seconds ()
    26. function moment.duration.fn.subtract (input, value)
    27. function moment.duration.fn.toISOString ()
    28. function moment.duration.fn.toIsoString ()
    29. function moment.duration.fn.toJSON ()
    30. function moment.duration.fn.toString ()
    31. function moment.duration.fn.valueOf ()
    32. function moment.duration.fn.weeks ()
    33. function moment.duration.fn.years ()

module moment

function moment ()

function moment.ISO_8601 ()

function moment.RFC_2822 ()

function moment.calendarFormat (myMoment, now)

function moment.createFromInputFallback ()

function moment.defineLocale (name, config)

function moment.duration (input, key)

function moment.invalid (flags)

function moment.isDate (input)

function moment.isDuration (obj)

function moment.isMoment (obj)

function moment.lang ()

function moment.langData ()

function moment.locale (key, values)

function moment.localeData (key)

function moment.locales ()

function moment.max ()

function moment.min ()

function moment.months (format, index)

function moment.monthsShort (format, index)

function moment.normalizeUnits (units)

function moment.now ()

function moment.parseTwoDigitYear (input)

function moment.parseZone ()

function moment.relativeTimeRounding (roundingFunction)

function moment.relativeTimeThreshold (threshold, limit)

function moment.unix (input)

function moment.updateLocale (name, config)

function moment.updateOffset ()

function moment.utc (input, format, locale, strict)

function moment.weekdays (localeSorted, format, index)

function moment.weekdaysMin (localeSorted, format, index)

function moment.weekdaysShort (localeSorted, format, index)

module moment.duration

function moment.duration (input, key)

function moment.duration.invalid ()

module moment.duration.fn

function moment.duration.fn._bubble ()

function moment.duration.fn.abs ()

function moment.duration.fn.add (input, value)

function moment.duration.fn.as (units)

function moment.duration.fn.asDays ()

function moment.duration.fn.asHours ()

function moment.duration.fn.asMilliseconds ()

function moment.duration.fn.asMinutes ()

function moment.duration.fn.asMonths ()

function moment.duration.fn.asSeconds ()

function moment.duration.fn.asWeeks ()

function moment.duration.fn.asYears ()

function moment.duration.fn.clone ()

function moment.duration.fn.days ()

function moment.duration.fn.get (units)

function moment.duration.fn.hours ()

function moment.duration.fn.humanize (withSuffix)

function moment.duration.fn.isValid ()

function moment.duration.fn.lang ()

function moment.duration.fn.locale (key)

function moment.duration.fn.localeData ()

function moment.duration.fn.milliseconds ()

function moment.duration.fn.minutes ()

function moment.duration.fn.months ()

function moment.duration.fn.seconds ()

function moment.duration.fn.subtract (input, value)

function moment.duration.fn.toISOString ()

function moment.duration.fn.toIsoString ()

function moment.duration.fn.toJSON ()

function moment.duration.fn.toString ()

function moment.duration.fn.valueOf ()

function moment.duration.fn.weeks ()

function moment.duration.fn.years ()

[ this document was created with utility2 ]