Home | History | Annotate | Download | only in hosted

Lines Matching defs:Date

48                 Date.prototype.toJSON = function (key) {
96 text = JSON.stringify([new Date()], function (key, value) {
97 return this[key] instanceof Date ?
98 'Date(' + this[key] + ')' : value;
100 // text is '["Date(---current time---)"]'
115 // Parse the text. Values that look like ISO date strings will
116 // be converted to Date objects.
124 return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
131 myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
134 value.slice(0, 5) === 'Date(' &&
136 d = new Date(value.slice(5, -1));
173 if (typeof Date.prototype.toJSON !== 'function') {
175 Date.prototype.toJSON = function (key) {