-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also prefix exported symbols with “time” and update dependencies.
- Loading branch information
Showing
11 changed files
with
295 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import defaultLocale from "./src/locale/en-US"; | ||
export {default as locale} from "./src/locale"; | ||
export {default as localeCaEs} from "./src/locale/ca-ES"; | ||
export {default as localeDeCh} from "./src/locale/de-CH"; | ||
export {default as localeDeDe} from "./src/locale/de-DE"; | ||
export {default as localeEnCa} from "./src/locale/en-CA"; | ||
export {default as localeEnGb} from "./src/locale/en-GB"; | ||
export {default as localeEnUs} from "./src/locale/en-US"; | ||
export {default as localeEsEs} from "./src/locale/es-ES"; | ||
export {default as localeFiFi} from "./src/locale/fi-FI"; | ||
export {default as localeFrCa} from "./src/locale/fr-CA"; | ||
export {default as localeFrFr} from "./src/locale/fr-FR"; | ||
export {default as localeHeIl} from "./src/locale/he-IL"; | ||
export {default as localeHuHu} from "./src/locale/hu-HU"; | ||
export {default as localeItIt} from "./src/locale/it-IT"; | ||
export {default as localeJaJp} from "./src/locale/ja-JP"; | ||
export {default as localeKoKr} from "./src/locale/ko-KR"; | ||
export {default as localeMkMk} from "./src/locale/mk-MK"; | ||
export {default as localeNlNl} from "./src/locale/nl-NL"; | ||
export {default as localePlPl} from "./src/locale/pl-PL"; | ||
export {default as localePtBr} from "./src/locale/pt-BR"; | ||
export {default as localeRuRu} from "./src/locale/ru-RU"; | ||
export {default as localeSvSe} from "./src/locale/sv-SE"; | ||
export {default as localeZhCn} from "./src/locale/zh-CN"; | ||
export {default as timeFormatLocale} from "./src/locale"; | ||
export {default as timeFormatCaEs} from "./src/locale/ca-ES"; | ||
export {default as timeFormatDeCh} from "./src/locale/de-CH"; | ||
export {default as timeFormatDeDe} from "./src/locale/de-DE"; | ||
export {default as timeFormatEnCa} from "./src/locale/en-CA"; | ||
export {default as timeFormatEnGb} from "./src/locale/en-GB"; | ||
export {default as timeFormatEnUs} from "./src/locale/en-US"; | ||
export {default as timeFormatEsEs} from "./src/locale/es-ES"; | ||
export {default as timeFormatFiFi} from "./src/locale/fi-FI"; | ||
export {default as timeFormatFrCa} from "./src/locale/fr-CA"; | ||
export {default as timeFormatFrFr} from "./src/locale/fr-FR"; | ||
export {default as timeFormatHeIl} from "./src/locale/he-IL"; | ||
export {default as timeFormatHuHu} from "./src/locale/hu-HU"; | ||
export {default as timeFormatItIt} from "./src/locale/it-IT"; | ||
export {default as timeFormatJaJp} from "./src/locale/ja-JP"; | ||
export {default as timeFormatKoKr} from "./src/locale/ko-KR"; | ||
export {default as timeFormatMkMk} from "./src/locale/mk-MK"; | ||
export {default as timeFormatNlNl} from "./src/locale/nl-NL"; | ||
export {default as timeFormatPlPl} from "./src/locale/pl-PL"; | ||
export {default as timeFormatPtBr} from "./src/locale/pt-BR"; | ||
export {default as timeFormatRuRu} from "./src/locale/ru-RU"; | ||
export {default as timeFormatSvSe} from "./src/locale/sv-SE"; | ||
export {default as timeFormatZhCn} from "./src/locale/zh-CN"; | ||
export {default as isoFormat} from "./src/isoFormat"; | ||
export var format = defaultLocale.format; | ||
export {default as isoParse} from "./src/isoParse"; | ||
export var timeFormat = defaultLocale.format; | ||
export var timeParse = defaultLocale.parse; | ||
export var utcFormat = defaultLocale.utcFormat; | ||
export var utcParse = defaultLocale.utcParse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import locale from "./locale/en-US"; | ||
import {isoSpecifier} from "./isoFormat"; | ||
|
||
function parseIsoNative(string) { | ||
var date = new Date(string); | ||
return isNaN(date) ? null : date; | ||
} | ||
|
||
var parseIso = +new Date("2000-01-01T00:00:00.000Z") | ||
? parseIsoNative | ||
: locale.utcParse(isoSpecifier); | ||
|
||
export default parseIso; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.