|
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:
287 bytes
|
| Line | |
|---|
| 1 | import {utcFormat} from "./defaultLocale.js";
|
|---|
| 2 |
|
|---|
| 3 | export var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ";
|
|---|
| 4 |
|
|---|
| 5 | function formatIsoNative(date) {
|
|---|
| 6 | return date.toISOString();
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | var formatIso = Date.prototype.toISOString
|
|---|
| 10 | ? formatIsoNative
|
|---|
| 11 | : utcFormat(isoSpecifier);
|
|---|
| 12 |
|
|---|
| 13 | export default formatIso;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.