summaryrefslogtreecommitdiff
path: root/date-fns/src/locale/gu/_lib/formatLong/index.js
blob: 064953bd77497c571e4f580909073017895322da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index'

//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html
var dateFormats = {
  full: 'EEEE, d MMMM, y', // CLDR #1825
  long: 'd MMMM, y', // CLDR #1826
  medium: 'd MMM, y', // CLDR #1827
  short: 'd/M/yy' // CLDR #1828
}

var timeFormats = {
  full: 'hh:mm:ss a zzzz', // CLDR #1829
  long: 'hh:mm:ss a z', // CLDR #1830
  medium: 'hh:mm:ss a', // CLDR #1831
  short: 'hh:mm a' // CLDR #1832
}

var dateTimeFormats = {
  full: '{{date}} {{time}}', // CLDR #1833
  long: '{{date}} {{time}}', // CLDR #1834
  medium: '{{date}} {{time}}', // CLDR #1835
  short: '{{date}} {{time}}' // CLDR #1836
}

var formatLong = {
  date: buildFormatLongFn({
    formats: dateFormats,
    defaultWidth: 'full'
  }),

  time: buildFormatLongFn({
    formats: timeFormats,
    defaultWidth: 'full'
  }),

  dateTime: buildFormatLongFn({
    formats: dateTimeFormats,
    defaultWidth: 'full'
  })
}

export default formatLong