{"json_modified": "2015-04-17T05:08:14.454123", "slug": "Web/JavaScript/Reference/Global_Objects/Date/setHours", "tags": [], "locale": "zh-CN", "title": "Date.prototype.setHours()", "translations": [{"title": "Date.prototype.setHours()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "The setHours()
method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date
instance.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-28T04:31:55", "review_tags": []}, {"title": "setHours", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Date/setHours", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Wszystkie_kategorie"], "summary": "", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:39", "review_tags": []}, {"title": "Date.prototype.setHours()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/setHours", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "La m\u00e9thode setHours()
d\u00e9finit les heures pour une date donn\u00e9e, selon l'heure locale, et renvoie le nombre de milli\u00e8mes de secondes \u00e9coul\u00e9es entre le 1er janvier 1970 00:00:00 UTC et la nouvelle date mise \u00e0 jour.", "localization_tags": [], "locale": "fr", "last_edit": "2015-01-17T11:46:13", "review_tags": []}, {"title": "Date.prototype.setHours()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "summary": "\u041c\u0435\u0442\u043e\u0434 setHours()
\u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0447\u0430\u0441\u044b \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u044b \u043f\u043e \u043c\u0435\u0441\u0442\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0445 \u0441 1 \u044f\u043d\u0432\u0430\u0440\u044f 1970 00:00:00 \u043f\u043e UTC \u0434\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u043c Date
.", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-28T05:04:30", "review_tags": []}], "modified": "2015-04-17T05:06:47", "label": "Date.prototype.setHours()", "localization_tags": [], "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours", "last_edit": "2014-07-02T08:01:02", "summary": "setHours()
\u00a0\u65b9\u6cd5\u6839\u636e\u672c\u5730\u65f6\u95f4\u4e3a\u4e00\u4e2a\u65e5\u671f\u5bf9\u8c61\u8bbe\u7f6e\u5c0f\u65f6\u6570\uff0c\u8fd4\u56de\u4ece1970-01-01 00:00:00 UTC \u5230\u66f4\u65b0\u540e\u7684 \u65e5\u671f
\u5bf9\u8c61\u5b9e\u4f8b\u6240\u8868\u793a\u65f6\u95f4\u7684\u6beb\u79d2\u6570\u3002", "sections": [{"id": "Quick_Links", "title": "JavaScript \u6807\u51c6\u5e93 Date \u5c5e\u6027 Date.prototype \u65b9\u6cd5 Date.UTC() Date.now() Date.parse() Date.prototype.getDate() Date.prototype.getDay() Date.prototype.getFullYear() Date.prototype.getHours() Date.prototype.getMilliseconds() Date.prototype.getMinutes() Date.prototype.getMonth() Date.prototype.getSeconds() Date.prototype.getTime() Date.prototype.getTimezoneOffset() Date.prototype.getUTCDate() Date.prototype.getUTCDay() Date.prototype.getUTCFullYear() Date.prototype.getUTCHours() Date.prototype.getUTCMilliseconds() Date.prototype.getUTCMinutes() Date.prototype.getUTCMonth() Date.prototype.getUTCSeconds() Date.prototype.getYear() Date.prototype.setDate() Date.prototype.setFullYear() Date.prototype.setHours() Date.prototype.setMilliseconds() Date.prototype.setMinutes() Date.prototype.setMonth() Date.prototype.setSeconds() Date.prototype.setTime() Date.prototype.setUTCDate() [Translate] Date.prototype.setUTCFullYear() [Translate] Date.prototype.setUTCHours() [Translate] Date.prototype.setUTCMilliseconds() [Translate] Date.prototype.setUTCMinutes() [Translate] Date.prototype.setUTCMonth() [Translate] Date.prototype.setUTCSeconds() [Translate] Date.prototype.setYear() Date.prototype.toDateString() Date.prototype.toGMTString() Date.prototype.toISOString() Date.prototype.toJSON() Date.prototype.toLocaleDateString() Date.prototype.toLocaleFormat() [Translate] Date.prototype.toLocaleString() Date.prototype.toLocaleTimeString() Date.prototype.toSource() [Translate] Date.prototype.toString() Date.prototype.toTimeString() Date.prototype.toUTCString() Date.prototype.valueOf() \u7ee7\u627f Function \u5c5e\u6027 Function.arguments Function.arity caller Function.displayName [Translate] length name prototype \u65b9\u6cd5 Function.prototype.apply() bind call isGenerator Function.toSource Function.prototype.toString() Object \u5c5e\u6027 Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ [Translate] __parent__ __proto__ constructor \u65b9\u6cd5 Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() [Translate] Object.prototype.hasOwnProperty() isPrototypeOf propertyIsEnumerable Object.prototype.toLocaleString() Object.toSource Object.prototype.toString() Object.prototype.unwatch() [Translate] Object.prototype.valueOf() watch"}, {"id": ".E6.A6.82.E8.BF.B0", "title": "\u6982\u8ff0"}, {"id": "Syntax", "title": "\u8bed\u6cd5"}, {"id": "Versions_prior_to_JavaScript_1.3", "title": "JavaScript 1.3\u7248\u672c\u4e4b\u524d"}, {"id": "Parameters", "title": "\u53c2\u6570"}, {"id": "Description", "title": "\u63cf\u8ff0"}, {"id": "Examples", "title": "\u4f8b\u5b50"}, {"id": "Example:_Using_setHours", "title": "\u4f8b\u5b50\uff1a\u4f7f\u7528 setHours\u65b9\u6cd5"}, {"id": ".E8.A7.84.E8.8C.83", "title": "\u89c4\u8303"}, {"id": ".E6.B5.8F.E8.A7.88.E5.99.A8.E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "See_Also", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 119843, "review_tags": []}