tools/gulp-tasks/cldr/extract.js
function getDateTimeFormats(localeData) {
  function getFormats(data) {
    return removeDuplicates([
      data.short._value || data.short,
      data.medium._value || data.medium,
      data.long._value || data.long,
      data.full._value || data.full
    ]);
  }

  const dateFormats = localeData.main('dates/calendars/gregorian/dateFormats');
  const timeFormats = localeData.main('dates/calendars/gregorian/timeFormats');
  const dateTimeFormats = localeData.main('dates/calendars/gregorian/dateTimeFormats');

  return [
    getFormats(dateFormats),
    getFormats(timeFormats),
    getFormats(dateTimeFormats)
  ];
}
function getDateTimeFormats(localeData) {
  function getFormats(data) {
    return removeDuplicates([
      data.short._value || data.short,
      data.medium._value || data.medium,
      data.long._value || data.long,
      data.full._value || data.full
    ]);
  }

  const dateFormats = localeData.main('dates/calendars/gregorian/dateFormats');
  const timeFormats = localeData.main('dates/calendars/gregorian/timeFormats');
  const dateTimeFormats = localeData.main('dates/calendars/gregorian/dateTimeFormats');

  return [
    getFormats(dateFormats),
    getFormats(timeFormats),
    getFormats(dateTimeFormats)
  ];
}
function getDateTimeFormats ( localeData ) { function getFormats ( data ) { return removeDuplicates ( [ data . short . _value || data . short , data . medium . _value || data . medium , data . long . _value || data . long , data . full . _value || data . full ] ) ; } const dateFormats = localeData . main ( 'dates/calendars/gregorian/dateFormats' ) ; const timeFormats = localeData . main ( 'dates/calendars/gregorian/timeFormats' ) ; const dateTimeFormats = localeData . main ( 'dates/calendars/gregorian/dateTimeFormats' ) ; return [ getFormats ( dateFormats ) , getFormats ( timeFormats ) , getFormats ( dateTimeFormats ) ] ; }
Returns date, time and dateTime formats for a locale
@returns [dateFormats, timeFormats, dateTimeFormats]
each format: [ short, medium, long, full ]
Returns date time and dateTime formats for a locale