Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

moment.js 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //! moment.js
  2. //! version : 2.24.0
  3. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  4. //! license : MIT
  5. //! momentjs.com
  6. import { hooks as moment, setHookCallback } from './lib/utils/hooks';
  7. moment.version = '2.24.0';
  8. import {
  9. min,
  10. max,
  11. now,
  12. isMoment,
  13. momentPrototype as fn,
  14. createUTC as utc,
  15. createUnix as unix,
  16. createLocal as local,
  17. createInvalid as invalid,
  18. createInZone as parseZone
  19. } from './lib/moment/moment';
  20. import {
  21. getCalendarFormat
  22. } from './lib/moment/calendar';
  23. import {
  24. defineLocale,
  25. updateLocale,
  26. getSetGlobalLocale as locale,
  27. getLocale as localeData,
  28. listLocales as locales,
  29. listMonths as months,
  30. listMonthsShort as monthsShort,
  31. listWeekdays as weekdays,
  32. listWeekdaysMin as weekdaysMin,
  33. listWeekdaysShort as weekdaysShort
  34. } from './lib/locale/locale';
  35. import {
  36. isDuration,
  37. createDuration as duration,
  38. getSetRelativeTimeRounding as relativeTimeRounding,
  39. getSetRelativeTimeThreshold as relativeTimeThreshold
  40. } from './lib/duration/duration';
  41. import { normalizeUnits } from './lib/units/units';
  42. import isDate from './lib/utils/is-date';
  43. setHookCallback(local);
  44. moment.fn = fn;
  45. moment.min = min;
  46. moment.max = max;
  47. moment.now = now;
  48. moment.utc = utc;
  49. moment.unix = unix;
  50. moment.months = months;
  51. moment.isDate = isDate;
  52. moment.locale = locale;
  53. moment.invalid = invalid;
  54. moment.duration = duration;
  55. moment.isMoment = isMoment;
  56. moment.weekdays = weekdays;
  57. moment.parseZone = parseZone;
  58. moment.localeData = localeData;
  59. moment.isDuration = isDuration;
  60. moment.monthsShort = monthsShort;
  61. moment.weekdaysMin = weekdaysMin;
  62. moment.defineLocale = defineLocale;
  63. moment.updateLocale = updateLocale;
  64. moment.locales = locales;
  65. moment.weekdaysShort = weekdaysShort;
  66. moment.normalizeUnits = normalizeUnits;
  67. moment.relativeTimeRounding = relativeTimeRounding;
  68. moment.relativeTimeThreshold = relativeTimeThreshold;
  69. moment.calendarFormat = getCalendarFormat;
  70. moment.prototype = fn;
  71. // currently HTML5 input type only supports 24-hour formats
  72. moment.HTML5_FMT = {
  73. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  74. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  75. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  76. DATE: 'YYYY-MM-DD', // <input type="date" />
  77. TIME: 'HH:mm', // <input type="time" />
  78. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  79. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  80. WEEK: 'GGGG-[W]WW', // <input type="week" />
  81. MONTH: 'YYYY-MM' // <input type="month" />
  82. };
  83. export default moment;