blob: 845279557de9d187359283b41eca6fad0ef894c3 (
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");
};
}
|