source: node_modules/d3-time-format/src/isoFormat.js@ e4c61dd

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