diff options
Diffstat (limited to 'date-fns/src/locale/ko')
-rw-r--r-- | date-fns/src/locale/ko/_lib/formatDistance/index.js | 101 | ||||
-rw-r--r-- | date-fns/src/locale/ko/_lib/formatLong/index.js | 41 | ||||
-rw-r--r-- | date-fns/src/locale/ko/_lib/formatRelative/index.js | 12 | ||||
-rw-r--r-- | date-fns/src/locale/ko/_lib/localize/index.js | 171 | ||||
-rw-r--r-- | date-fns/src/locale/ko/_lib/match/index.js | 126 | ||||
-rw-r--r-- | date-fns/src/locale/ko/index.d.ts | 4 | ||||
-rw-r--r-- | date-fns/src/locale/ko/index.js | 30 | ||||
-rw-r--r-- | date-fns/src/locale/ko/index.js.flow | 35 | ||||
-rw-r--r-- | date-fns/src/locale/ko/snapshot.md | 304 |
9 files changed, 824 insertions, 0 deletions
diff --git a/date-fns/src/locale/ko/_lib/formatDistance/index.js b/date-fns/src/locale/ko/_lib/formatDistance/index.js new file mode 100644 index 0000000..e05cc3a --- /dev/null +++ b/date-fns/src/locale/ko/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1초 미만', + other: '{{count}}초 미만' + }, + + xSeconds: { + one: '1초', + other: '{{count}}초' + }, + + halfAMinute: '30초', + + lessThanXMinutes: { + one: '1분 미만', + other: '{{count}}분 미만' + }, + + xMinutes: { + one: '1분', + other: '{{count}}분' + }, + + aboutXHours: { + one: '약 1시간', + other: '약 {{count}}시간' + }, + + xHours: { + one: '1시간', + other: '{{count}}시간' + }, + + xDays: { + one: '1일', + other: '{{count}}일' + }, + + aboutXWeeks: { + one: '약 1주', + other: '약 {{count}}주' + }, + + xWeeks: { + one: '1주', + other: '{{count}}주' + }, + + aboutXMonths: { + one: '약 1개월', + other: '약 {{count}}개월' + }, + + xMonths: { + one: '1개월', + other: '{{count}}개월' + }, + + aboutXYears: { + one: '약 1년', + other: '약 {{count}}년' + }, + + xYears: { + one: '1년', + other: '{{count}}년' + }, + + overXYears: { + one: '1년 이상', + other: '{{count}}년 이상' + }, + + almostXYears: { + one: '거의 1년', + other: '거의 {{count}}년' + } +} + +export default function formatDistance(token, count, options) { + options = options || {} + + var result + if (typeof formatDistanceLocale[token] === 'string') { + result = formatDistanceLocale[token] + } else if (count === 1) { + result = formatDistanceLocale[token].one + } else { + result = formatDistanceLocale[token].other.replace('{{count}}', count) + } + + if (options.addSuffix) { + if (options.comparison > 0) { + return result + ' 후' + } else { + return result + ' 전' + } + } + + return result +} diff --git a/date-fns/src/locale/ko/_lib/formatLong/index.js b/date-fns/src/locale/ko/_lib/formatLong/index.js new file mode 100644 index 0000000..6b40e1d --- /dev/null +++ b/date-fns/src/locale/ko/_lib/formatLong/index.js @@ -0,0 +1,41 @@ +import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index' + +var dateFormats = { + full: 'y년 M월 d일 EEEE', + long: 'y년 M월 d일', + medium: 'y.MM.dd', + short: 'y.MM.dd' +} + +var timeFormats = { + full: 'a H시 mm분 ss초 zzzz', + long: 'a H:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +} + +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +} + +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +} + +export default formatLong diff --git a/date-fns/src/locale/ko/_lib/formatRelative/index.js b/date-fns/src/locale/ko/_lib/formatRelative/index.js new file mode 100644 index 0000000..724448b --- /dev/null +++ b/date-fns/src/locale/ko/_lib/formatRelative/index.js @@ -0,0 +1,12 @@ +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: 'P' +} + +export default function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token] +} diff --git a/date-fns/src/locale/ko/_lib/localize/index.js b/date-fns/src/locale/ko/_lib/localize/index.js new file mode 100644 index 0000000..71a4f96 --- /dev/null +++ b/date-fns/src/locale/ko/_lib/localize/index.js @@ -0,0 +1,171 @@ +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index' + +var eraValues = { + narrow: ['BC', 'AD'], + abbreviated: ['BC', 'AD'], + wide: ['기원전', '서기'] +} + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1분기', '2분기', '3분기', '4분기'] +} + +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: [ + '1월', + '2월', + '3월', + '4월', + '5월', + '6월', + '7월', + '8월', + '9월', + '10월', + '11월', + '12월' + ], + wide: [ + '1월', + '2월', + '3월', + '4월', + '5월', + '6월', + '7월', + '8월', + '9월', + '10월', + '11월', + '12월' + ] +} + +var dayValues = { + narrow: ['일', '월', '화', '수', '목', '금', '토'], + short: ['일', '월', '화', '수', '목', '금', '토'], + abbreviated: ['일', '월', '화', '수', '목', '금', '토'], + wide: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'] +} + +var dayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +} + +var formattingDayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +} + +function ordinalNumber(dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber) + + var options = dirtyOptions || {} + var unit = String(options.unit) + + switch (unit) { + case 'minute': + case 'second': + return number + case 'date': + return number + '일' + default: + return number + '번째' + } +} + +var localize = { + ordinalNumber: ordinalNumber, + + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function(quarter) { + return Number(quarter) - 1 + } + }), + + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +} + +export default localize diff --git a/date-fns/src/locale/ko/_lib/match/index.js b/date-fns/src/locale/ko/_lib/match/index.js new file mode 100644 index 0000000..7f495af --- /dev/null +++ b/date-fns/src/locale/ko/_lib/match/index.js @@ -0,0 +1,126 @@ +import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index' +import buildMatchFn from '../../../_lib/buildMatchFn/index' + +var matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i +var parseOrdinalNumberPattern = /\d+/i + +var matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i +} + +var parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/i] +} + +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i +} + +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +} + +var matchMonthPatterns = { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i +} + +var parseMonthPatterns = { + any: [ + /^1월?$/, + /^2/, + /^3/, + /^4/, + /^5/, + /^6/, + /^7/, + /^8/, + /^9/, + /^10/, + /^11/, + /^12/ + ] +} + +var matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/ +} + +var parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/] +} + +var matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i +} + +var parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i + } +} + +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function(value) { + return parseInt(value, 10) + } + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function(index) { + return index + 1 + } + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +} + +export default match diff --git a/date-fns/src/locale/ko/index.d.ts b/date-fns/src/locale/ko/index.d.ts new file mode 100644 index 0000000..eac8228 --- /dev/null +++ b/date-fns/src/locale/ko/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ko } from 'date-fns/locale' +export default ko diff --git a/date-fns/src/locale/ko/index.js b/date-fns/src/locale/ko/index.js new file mode 100644 index 0000000..c0725f8 --- /dev/null +++ b/date-fns/src/locale/ko/index.js @@ -0,0 +1,30 @@ +import formatDistance from './_lib/formatDistance/index' +import formatLong from './_lib/formatLong/index' +import formatRelative from './_lib/formatRelative/index' +import localize from './_lib/localize/index' +import match from './_lib/match/index' + +/** + * @type {Locale} + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev]{@link https://github.com/angdev} + * @author Lee Seoyoen [@iamssen]{@link https://github.com/iamssen} + * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} + */ +var locale = { + code: 'ko', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 /* Sunday */, + firstWeekContainsDate: 1 + } +} + +export default locale diff --git a/date-fns/src/locale/ko/index.js.flow b/date-fns/src/locale/ko/index.js.flow new file mode 100644 index 0000000..b9dfe66 --- /dev/null +++ b/date-fns/src/locale/ko/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array<any>) => any, + formatRelative?: (...args: Array<any>) => any, + localize?: { + ordinalNumber: (...args: Array<any>) => any, + era: (...args: Array<any>) => any, + quarter: (...args: Array<any>) => any, + month: (...args: Array<any>) => any, + day: (...args: Array<any>) => any, + dayPeriod: (...args: Array<any>) => any, + }, + formatLong?: { + date: (...args: Array<any>) => any, + time: (...args: Array<any>) => any, + dateTime: (...args: Array<any>) => any, + }, + match?: { + ordinalNumber: (...args: Array<any>) => any, + era: (...args: Array<any>) => any, + quarter: (...args: Array<any>) => any, + month: (...args: Array<any>) => any, + day: (...args: Array<any>) => any, + dayPeriod: (...args: Array<any>) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/date-fns/src/locale/ko/snapshot.md b/date-fns/src/locale/ko/snapshot.md new file mode 100644 index 0000000..9618884 --- /dev/null +++ b/date-fns/src/locale/ko/snapshot.md @@ -0,0 +1,304 @@ +# Korean (ko) locale + +## `format` and `parse` + +| Title | Token string | Date | `format` result | `parse` result | +| ------------------------------- | ------------ | ------------------------ | ---------------------------------------------------- | ------------------------ | +| Calendar year | yo | 1987-02-11T12:13:14.015Z | 1987번째 | 1987-01-01T00:00:00.000Z | +| | | 0005-01-01T12:13:14.015Z | 5번째 | 0005-01-01T00:00:00.000Z | +| Local week-numbering year | Yo | 1987-02-11T12:13:14.015Z | 1987번째 | 1986-12-28T00:00:00.000Z | +| | | 0005-01-01T12:13:14.015Z | 5번째 | 0004-12-26T00:00:00.000Z | +| Quarter (formatting) | Qo | 2019-01-01T12:13:14.015Z | 1번째 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | 2번째 | 2019-04-01T00:00:00.000Z | +| | QQQ | 2019-01-01T12:13:14.015Z | Q1 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | Q2 | 2019-04-01T00:00:00.000Z | +| | QQQQ | 2019-01-01T12:13:14.015Z | 1분기 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | 2분기 | 2019-04-01T00:00:00.000Z | +| | QQQQQ | 2019-01-01T12:13:14.015Z | 1 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | 2 | 2019-04-01T00:00:00.000Z | +| Quarter (stand-alone) | qo | 2019-01-01T12:13:14.015Z | 1번째 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | 2번째 | 2019-04-01T00:00:00.000Z | +| | qqq | 2019-01-01T12:13:14.015Z | Q1 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | Q2 | 2019-04-01T00:00:00.000Z | +| | qqqq | 2019-01-01T12:13:14.015Z | 1분기 | 2019-01-01T00:00:00.000Z | +| | | 2019-04-01T12:13:14.015Z | 2분기 | 2019-04-01T00:00:00.000Z | +| Month (formatting) | Mo | 2019-02-11T12:13:14.015Z | 2번째 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7번째 | 2019-07-01T00:00:00.000Z | +| | MMM | 2019-02-11T12:13:14.015Z | 2월 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7월 | 2019-07-01T00:00:00.000Z | +| | MMMM | 2019-02-11T12:13:14.015Z | 2월 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7월 | 2019-07-01T00:00:00.000Z | +| | MMMMM | 2019-02-11T12:13:14.015Z | 2 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7 | 2019-07-01T00:00:00.000Z | +| Month (stand-alone) | Lo | 2019-02-11T12:13:14.015Z | 2번째 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7번째 | 2019-07-01T00:00:00.000Z | +| | LLL | 2019-02-11T12:13:14.015Z | 2월 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7월 | 2019-07-01T00:00:00.000Z | +| | LLLL | 2019-02-11T12:13:14.015Z | 2월 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7월 | 2019-07-01T00:00:00.000Z | +| | LLLLL | 2019-02-11T12:13:14.015Z | 2 | 2019-02-01T00:00:00.000Z | +| | | 2019-07-10T12:13:14.015Z | 7 | 2019-07-01T00:00:00.000Z | +| Local week of year | wo | 2019-01-01T12:13:14.015Z | 1번째 | 2018-12-30T00:00:00.000Z | +| | | 2019-12-01T12:13:14.015Z | 49번째 | 2019-12-01T00:00:00.000Z | +| ISO week of year | Io | 2019-01-01T12:13:14.015Z | 1번째 | 2018-12-31T00:00:00.000Z | +| | | 2019-12-01T12:13:14.015Z | 48번째 | 2019-11-25T00:00:00.000Z | +| Day of month | do | 2019-02-11T12:13:14.015Z | 11일 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-28T12:13:14.015Z | 28일 | 2019-02-28T00:00:00.000Z | +| Day of year | Do | 2019-02-11T12:13:14.015Z | 42번째 | 2019-02-11T00:00:00.000Z | +| | | 2019-12-31T12:13:14.015Z | 365번째 | 2019-12-31T00:00:00.000Z | +| Day of week (formatting) | E | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | EE | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | EEE | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | EEEE | 2019-02-11T12:13:14.015Z | 월요일 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금요일 | 2019-02-15T00:00:00.000Z | +| | EEEEE | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | EEEEEE | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| ISO day of week (formatting) | io | 2019-02-11T12:13:14.015Z | 1번째 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 5번째 | 2019-02-15T00:00:00.000Z | +| | iii | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | iiii | 2019-02-11T12:13:14.015Z | 월요일 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금요일 | 2019-02-15T00:00:00.000Z | +| | iiiii | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | iiiiii | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| Local day of week (formatting) | eo | 2019-02-11T12:13:14.015Z | 2번째 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 6번째 | 2019-02-15T00:00:00.000Z | +| | eee | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | eeee | 2019-02-11T12:13:14.015Z | 월요일 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금요일 | 2019-02-15T00:00:00.000Z | +| | eeeee | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | eeeeee | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| Local day of week (stand-alone) | co | 2019-02-11T12:13:14.015Z | 2번째 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 6번째 | 2019-02-15T00:00:00.000Z | +| | ccc | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | cccc | 2019-02-11T12:13:14.015Z | 월요일 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금요일 | 2019-02-15T00:00:00.000Z | +| | ccccc | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| | cccccc | 2019-02-11T12:13:14.015Z | 월 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-15T12:13:14.015Z | 금 | 2019-02-15T00:00:00.000Z | +| AM, PM | a | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | aa | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | aaa | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | aaaa | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | aaaaa | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| AM, PM, noon, midnight | b | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | bb | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | bbb | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | bbbb | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | bbbbb | 2019-02-11T11:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 오전 | 2019-02-11T00:00:00.000Z | +| Flexible day period | B | 2019-02-11T11:13:14.015Z | 아침 | 2019-02-11T04:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 저녁 | 2019-02-11T17:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 밤 | 2019-02-11T00:00:00.000Z | +| | BB | 2019-02-11T11:13:14.015Z | 아침 | 2019-02-11T04:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 저녁 | 2019-02-11T17:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 밤 | 2019-02-11T00:00:00.000Z | +| | BBB | 2019-02-11T11:13:14.015Z | 아침 | 2019-02-11T04:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 저녁 | 2019-02-11T17:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 밤 | 2019-02-11T00:00:00.000Z | +| | BBBB | 2019-02-11T11:13:14.015Z | 아침 | 2019-02-11T04:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 저녁 | 2019-02-11T17:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 밤 | 2019-02-11T00:00:00.000Z | +| | BBBBB | 2019-02-11T11:13:14.015Z | 아침 | 2019-02-11T04:00:00.000Z | +| | | 2019-02-11T14:13:14.015Z | 오후 | 2019-02-11T12:00:00.000Z | +| | | 2019-02-11T19:13:14.015Z | 저녁 | 2019-02-11T17:00:00.000Z | +| | | 2019-02-11T02:13:14.015Z | 밤 | 2019-02-11T00:00:00.000Z | +| Hour [1-12] | ho | 2019-02-11T11:13:14.015Z | 11번째 | 2019-02-11T11:00:00.000Z | +| | | 2019-02-11T23:13:14.015Z | 11번째 | 2019-02-11T23:00:00.000Z | +| Hour [0-23] | Ho | 2019-02-11T11:13:14.015Z | 11번째 | 2019-02-11T11:00:00.000Z | +| | | 2019-02-11T23:13:14.015Z | 23번째 | 2019-02-11T23:00:00.000Z | +| Hour [0-11] | Ko | 2019-02-11T11:13:14.015Z | 11번째 | 2019-02-11T11:00:00.000Z | +| | | 2019-02-11T23:13:14.015Z | 11번째 | 2019-02-11T23:00:00.000Z | +| Hour [1-24] | ko | 2019-02-11T11:13:14.015Z | 11번째 | 2019-02-11T11:00:00.000Z | +| | | 2019-02-11T23:13:14.015Z | 23번째 | 2019-02-11T23:00:00.000Z | +| Minute | mo | 2019-01-01T12:01:14.015Z | 1 | 2019-01-01T12:01:00.000Z | +| | | 2019-04-01T12:55:14.015Z | 55 | 2019-04-01T12:55:00.000Z | +| Second | so | 2019-01-01T12:13:01.015Z | 1 | 2019-01-01T12:13:01.000Z | +| | | 2019-04-01T12:13:55.015Z | 55 | 2019-04-01T12:13:55.000Z | +| Long localized date | P | 1987-02-11T12:13:14.015Z | 1987.02.11 | 1987-02-11T00:00:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453.05.29 | 1453-05-29T00:00:00.000Z | +| | PP | 1987-02-11T12:13:14.015Z | 1987.02.11 | 1987-02-11T00:00:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453.05.29 | 1453-05-29T00:00:00.000Z | +| | PPP | 1987-02-11T12:13:14.015Z | 1987년 2월 11일 | 1987-02-11T00:00:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453년 5월 29일 | 1453-05-29T00:00:00.000Z | +| | PPPP | 1987-02-11T12:13:14.015Z | 1987년 2월 11일 수요일 | 1987-02-11T00:00:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453년 5월 29일 일요일 | 1453-05-29T00:00:00.000Z | +| Long localized time | p | 1987-02-11T12:13:14.015Z | 12:13 | 1987-02-11T12:13:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 23:59 | 1453-05-29T23:59:00.000Z | +| | pp | 1987-02-11T12:13:14.015Z | 12:13:14 | 1987-02-11T12:13:14.000Z | +| | | 1453-05-29T23:59:59.999Z | 23:59:59 | 1453-05-29T23:59:59.000Z | +| | ppp | 1987-02-11T12:13:14.015Z | 오후 12:13:14 GMT+0 | Errored | +| | | 1453-05-29T23:59:59.999Z | 오후 23:59:59 GMT+0 | Errored | +| | pppp | 1987-02-11T12:13:14.015Z | 오후 12시 13분 14초 GMT+00:00 | Errored | +| | | 1453-05-29T23:59:59.999Z | 오후 23시 59분 59초 GMT+00:00 | Errored | +| Combination of date and time | Pp | 1987-02-11T12:13:14.015Z | 1987.02.11 12:13 | 1987-02-11T12:13:00.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453.05.29 23:59 | 1453-05-29T23:59:00.000Z | +| | PPpp | 1987-02-11T12:13:14.015Z | 1987.02.11 12:13:14 | 1987-02-11T12:13:14.000Z | +| | | 1453-05-29T23:59:59.999Z | 1453.05.29 23:59:59 | 1453-05-29T23:59:59.000Z | +| | PPPppp | 1987-02-11T12:13:14.015Z | 1987년 2월 11일 오후 12:13:14 GMT+0 | Errored | +| | | 1453-05-29T23:59:59.999Z | 1453년 5월 29일 오후 23:59:59 GMT+0 | Errored | +| | PPPPpppp | 1987-02-11T12:13:14.015Z | 1987년 2월 11일 수요일 오후 12시 13분 14초 GMT+00:00 | Errored | +| | | 1453-05-29T23:59:59.999Z | 1453년 5월 29일 일요일 오후 23시 59분 59초 GMT+00:00 | Errored | + +## `formatDistance` + +If now is January 1st, 2000, 00:00. + +| Date | Result | `includeSeconds: true` | `addSuffix: true` | +| ------------------------ | -------- | ---------------------- | ----------------- | +| 2006-01-01T00:00:00.000Z | 약 6년 | 약 6년 | 약 6년 후 | +| 2005-01-01T00:00:00.000Z | 약 5년 | 약 5년 | 약 5년 후 | +| 2004-01-01T00:00:00.000Z | 약 4년 | 약 4년 | 약 4년 후 | +| 2003-01-01T00:00:00.000Z | 약 3년 | 약 3년 | 약 3년 후 | +| 2002-01-01T00:00:00.000Z | 약 2년 | 약 2년 | 약 2년 후 | +| 2001-06-01T00:00:00.000Z | 1년 이상 | 1년 이상 | 1년 이상 후 | +| 2001-02-01T00:00:00.000Z | 약 1년 | 약 1년 | 약 1년 후 | +| 2001-01-01T00:00:00.000Z | 약 1년 | 약 1년 | 약 1년 후 | +| 2000-06-01T00:00:00.000Z | 5개월 | 5개월 | 5개월 후 | +| 2000-03-01T00:00:00.000Z | 2개월 | 2개월 | 2개월 후 | +| 2000-02-01T00:00:00.000Z | 약 1개월 | 약 1개월 | 약 1개월 후 | +| 2000-01-15T00:00:00.000Z | 14일 | 14일 | 14일 후 | +| 2000-01-02T00:00:00.000Z | 1일 | 1일 | 1일 후 | +| 2000-01-01T06:00:00.000Z | 약 6시간 | 약 6시간 | 약 6시간 후 | +| 2000-01-01T01:00:00.000Z | 약 1시간 | 약 1시간 | 약 1시간 후 | +| 2000-01-01T00:45:00.000Z | 약 1시간 | 약 1시간 | 약 1시간 후 | +| 2000-01-01T00:30:00.000Z | 30분 | 30분 | 30분 후 | +| 2000-01-01T00:15:00.000Z | 15분 | 15분 | 15분 후 | +| 2000-01-01T00:01:00.000Z | 1분 | 1분 | 1분 후 | +| 2000-01-01T00:00:25.000Z | 1분 미만 | 30초 | 1분 미만 후 | +| 2000-01-01T00:00:15.000Z | 1분 미만 | 20초 미만 | 1분 미만 후 | +| 2000-01-01T00:00:05.000Z | 1분 미만 | 10초 미만 | 1분 미만 후 | +| 2000-01-01T00:00:00.000Z | 1분 미만 | 5초 미만 | 1분 미만 전 | +| 1999-12-31T23:59:55.000Z | 1분 미만 | 10초 미만 | 1분 미만 전 | +| 1999-12-31T23:59:45.000Z | 1분 미만 | 20초 미만 | 1분 미만 전 | +| 1999-12-31T23:59:35.000Z | 1분 미만 | 30초 | 1분 미만 전 | +| 1999-12-31T23:59:00.000Z | 1분 | 1분 | 1분 전 | +| 1999-12-31T23:45:00.000Z | 15분 | 15분 | 15분 전 | +| 1999-12-31T23:30:00.000Z | 30분 | 30분 | 30분 전 | +| 1999-12-31T23:15:00.000Z | 약 1시간 | 약 1시간 | 약 1시간 전 | +| 1999-12-31T23:00:00.000Z | 약 1시간 | 약 1시간 | 약 1시간 전 | +| 1999-12-31T18:00:00.000Z | 약 6시간 | 약 6시간 | 약 6시간 전 | +| 1999-12-30T00:00:00.000Z | 2일 | 2일 | 2일 전 | +| 1999-12-15T00:00:00.000Z | 17일 | 17일 | 17일 전 | +| 1999-12-01T00:00:00.000Z | 약 1개월 | 약 1개월 | 약 1개월 전 | +| 1999-11-01T00:00:00.000Z | 2개월 | 2개월 | 2개월 전 | +| 1999-06-01T00:00:00.000Z | 7개월 | 7개월 | 7개월 전 | +| 1999-01-01T00:00:00.000Z | 약 1년 | 약 1년 | 약 1년 전 | +| 1998-12-01T00:00:00.000Z | 약 1년 | 약 1년 | 약 1년 전 | +| 1998-06-01T00:00:00.000Z | 1년 이상 | 1년 이상 | 1년 이상 전 | +| 1998-01-01T00:00:00.000Z | 약 2년 | 약 2년 | 약 2년 전 | +| 1997-01-01T00:00:00.000Z | 약 3년 | 약 3년 | 약 3년 전 | +| 1996-01-01T00:00:00.000Z | 약 4년 | 약 4년 | 약 4년 전 | +| 1995-01-01T00:00:00.000Z | 약 5년 | 약 5년 | 약 5년 전 | +| 1994-01-01T00:00:00.000Z | 약 6년 | 약 6년 | 약 6년 전 | + +## `formatDistanceStrict` + +If now is January 1st, 2000, 00:00. + +| Date | Result | `addSuffix: true` | With forced unit (i.e. `hour`) | +| ------------------------ | ------ | ----------------- | ------------------------------ | +| 2006-01-01T00:00:00.000Z | 6년 | 6년 후 | 52608시간 | +| 2005-01-01T00:00:00.000Z | 5년 | 5년 후 | 43848시간 | +| 2004-01-01T00:00:00.000Z | 4년 | 4년 후 | 35064시간 | +| 2003-01-01T00:00:00.000Z | 3년 | 3년 후 | 26304시간 | +| 2002-01-01T00:00:00.000Z | 2년 | 2년 후 | 17544시간 | +| 2001-06-01T00:00:00.000Z | 1년 | 1년 후 | 12408시간 | +| 2001-02-01T00:00:00.000Z | 1년 | 1년 후 | 9528시간 | +| 2001-01-01T00:00:00.000Z | 1년 | 1년 후 | 8784시간 | +| 2000-06-01T00:00:00.000Z | 5개월 | 5개월 후 | 3648시간 | +| 2000-03-01T00:00:00.000Z | 2개월 | 2개월 후 | 1440시간 | +| 2000-02-01T00:00:00.000Z | 1개월 | 1개월 후 | 744시간 | +| 2000-01-15T00:00:00.000Z | 14일 | 14일 후 | 336시간 | +| 2000-01-02T00:00:00.000Z | 1일 | 1일 후 | 24시간 | +| 2000-01-01T06:00:00.000Z | 6시간 | 6시간 후 | 6시간 | +| 2000-01-01T01:00:00.000Z | 1시간 | 1시간 후 | 1시간 | +| 2000-01-01T00:45:00.000Z | 45분 | 45분 후 | 1시간 | +| 2000-01-01T00:30:00.000Z | 30분 | 30분 후 | 1시간 | +| 2000-01-01T00:15:00.000Z | 15분 | 15분 후 | 0시간 | +| 2000-01-01T00:01:00.000Z | 1분 | 1분 후 | 0시간 | +| 2000-01-01T00:00:25.000Z | 25초 | 25초 후 | 0시간 | +| 2000-01-01T00:00:15.000Z | 15초 | 15초 후 | 0시간 | +| 2000-01-01T00:00:05.000Z | 5초 | 5초 후 | 0시간 | +| 2000-01-01T00:00:00.000Z | 0초 | 0초 전 | 0시간 | +| 1999-12-31T23:59:55.000Z | 5초 | 5초 전 | 0시간 | +| 1999-12-31T23:59:45.000Z | 15초 | 15초 전 | 0시간 | +| 1999-12-31T23:59:35.000Z | 25초 | 25초 전 | 0시간 | +| 1999-12-31T23:59:00.000Z | 1분 | 1분 전 | 0시간 | +| 1999-12-31T23:45:00.000Z | 15분 | 15분 전 | 0시간 | +| 1999-12-31T23:30:00.000Z | 30분 | 30분 전 | 1시간 | +| 1999-12-31T23:15:00.000Z | 45분 | 45분 전 | 1시간 | +| 1999-12-31T23:00:00.000Z | 1시간 | 1시간 전 | 1시간 | +| 1999-12-31T18:00:00.000Z | 6시간 | 6시간 전 | 6시간 | +| 1999-12-30T00:00:00.000Z | 2일 | 2일 전 | 48시간 | +| 1999-12-15T00:00:00.000Z | 17일 | 17일 전 | 408시간 | +| 1999-12-01T00:00:00.000Z | 1개월 | 1개월 전 | 744시간 | +| 1999-11-01T00:00:00.000Z | 2개월 | 2개월 전 | 1464시간 | +| 1999-06-01T00:00:00.000Z | 7개월 | 7개월 전 | 5136시간 | +| 1999-01-01T00:00:00.000Z | 1년 | 1년 전 | 8760시간 | +| 1998-12-01T00:00:00.000Z | 1년 | 1년 전 | 9504시간 | +| 1998-06-01T00:00:00.000Z | 2년 | 2년 전 | 13896시간 | +| 1998-01-01T00:00:00.000Z | 2년 | 2년 전 | 17520시간 | +| 1997-01-01T00:00:00.000Z | 3년 | 3년 전 | 26280시간 | +| 1996-01-01T00:00:00.000Z | 4년 | 4년 전 | 35064시간 | +| 1995-01-01T00:00:00.000Z | 5년 | 5년 전 | 43824시간 | +| 1994-01-01T00:00:00.000Z | 6년 | 6년 전 | 52584시간 | + +## `formatRelative` + +If now is January 1st, 2000, 00:00. + +| Date | Result | +| ------------------------ | ----------------- | +| 2000-01-10T00:00:00.000Z | 2000.01.10 | +| 2000-01-05T00:00:00.000Z | 다음 수요일 00:00 | +| 2000-01-02T00:00:00.000Z | 내일 00:00 | +| 2000-01-01T00:00:00.000Z | 오늘 00:00 | +| 1999-12-31T00:00:00.000Z | 어제 00:00 | +| 1999-12-27T00:00:00.000Z | 지난 월요일 00:00 | +| 1999-12-21T00:00:00.000Z | 1999.12.21 | |