update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
14
node_modules/ramda/es/internal/_toISOString.js
generated
vendored
Normal file
14
node_modules/ramda/es/internal/_toISOString.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
||||
*/
|
||||
var pad = function pad(n) {
|
||||
return (n < 10 ? '0' : '') + n;
|
||||
};
|
||||
|
||||
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
||||
return d.toISOString();
|
||||
} : function _toISOString(d) {
|
||||
return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
|
||||
};
|
||||
|
||||
export default _toISOString;
|
Loading…
Add table
Add a link
Reference in a new issue