blob: 4136d110867ab9b696e9b7079bd986ec8d589589 (
plain)
1
2
3
4
5
6
7
8
|
// Format a Date object as a string according to a subset of the ISO-8601 standard.
// Useful in Atom.
if (!Date.prototype.toISOString) {
Date.prototype.toISOString = function() {
return (this.getFullYear() + "-" + this.getMonth() + "-" + this.getDate() + "T" + this.getHours() + ":" + this.getMinutes() + ":" + this.getSeconds() + "Z");
}
}
|