Home | History | Annotate | Download | only in resources

Lines Matching defs:Date

40                 Date.prototype.toJSON = function (key) {
88 text = JSON.stringify([new Date()], function (key, value) {
89 return this[key] instanceof Date ?
90 'Date(' + this[key] + ')' : value;
92 // text is '["Date(---current time---)"]'
107 // Parse the text. Values that look like ISO date strings will
108 // be converted to Date objects.
116 return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
123 myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
126 value.slice(0, 5) === 'Date(' &&
128 d = new Date(value.slice(5, -1));
171 if (typeof Date.prototype.toJSON !== 'function') {
173 Date.prototype.toJSON = function (key) {