|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
325 bytes
|
| Line | |
|---|
| 1 | import {isoSpecifier} from "./isoFormat.js";
|
|---|
| 2 | import {utcParse} from "./defaultLocale.js";
|
|---|
| 3 |
|
|---|
| 4 | function parseIsoNative(string) {
|
|---|
| 5 | var date = new Date(string);
|
|---|
| 6 | return isNaN(date) ? null : date;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
|---|
| 10 | ? parseIsoNative
|
|---|
| 11 | : utcParse(isoSpecifier);
|
|---|
| 12 |
|
|---|
| 13 | export default parseIso;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.