{"json_modified": "2015-05-01T23:58:13.868528", "slug": "Web/JavaScript/Reference/Global_Objects/Date/setHours", "tags": ["Reference", "R\u00e9ference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Method"], "locale": "ja", "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 <strong><code>setHours()</code></strong> 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 <a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\" title=\"Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC.\"><code>Date</code></a> instance.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-10-28T04:31:55", "review_tags": []}, {"title": "Date.prototype.setHours()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Date/setHours", "tags": ["prototype", "Method", "Date", "JavaScript"], "summary": "Ustawia godziny dla okre\u015blonej daty stosownie do czasu lokalnego.", "localization_tags": [], "locale": "pl", "last_edit": "2015-04-18T13:53:07", "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 <code><strong>setHours()</strong></code> 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": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours", "tags": [], "summary": "<code><strong>setHours()</strong></code>\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 <a href=\"/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date\" title=\"&#x521B;&#x5EFA;Date &#x5B9E;&#x4F8B;&#x7528;&#x6765;&#x5904;&#x7406;&#x65E5;&#x671F;&#x548C;&#x65F6;&#x95F4;&#x3002;\"><code>\u65e5\u671f</code></a> \u5bf9\u8c61\u5b9e\u4f8b\u6240\u8868\u793a\u65f6\u95f4\u7684\u6beb\u79d2\u6570\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-07-02T08:01:02", "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 <strong><code>setHours()</code></strong> \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 <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Date\" title=\"&#x421;&#x43E;&#x437;&#x434;&#x430;&#x451;&#x442; &#x44D;&#x43A;&#x437;&#x435;&#x43C;&#x43F;&#x43B;&#x44F;&#x440; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x430; Date, &#x43F;&#x440;&#x435;&#x434;&#x441;&#x442;&#x430;&#x432;&#x43B;&#x44F;&#x44E;&#x449;&#x435;&#x433;&#x43E; &#x441;&#x43E;&#x431;&#x43E;&#x439; &#x43C;&#x43E;&#x43C;&#x435;&#x43D;&#x442; &#x432;&#x440;&#x435;&#x43C;&#x435;&#x43D;&#x438;. &#x41E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B; &#x434;&#x430;&#x442;&#x44B; Date &#x43E;&#x441;&#x43D;&#x43E;&#x432;&#x44B;&#x432;&#x430;&#x44E;&#x442;&#x441;&#x44F; &#x43D;&#x430; &#x437;&#x43D;&#x430;&#x447;&#x435;&#x43D;&#x438;&#x438; &#x43A;&#x43E;&#x43B;&#x438;&#x447;&#x435;&#x441;&#x442;&#x432;&#x430; &#x43C;&#x438;&#x43B;&#x43B;&#x438;&#x441;&#x435;&#x43A;&#x443;&#x43D;&#x434;, &#x43F;&#x440;&#x43E;&#x448;&#x435;&#x434;&#x448;&#x438;&#x445; &#x441; 1 &#x44F;&#x43D;&#x432;&#x430;&#x440;&#x44F; 1970 &#x433;&#x43E;&#x434;&#x430; &#x432; &#x447;&#x430;&#x441;&#x43E;&#x432;&#x43E;&#x43C; &#x43F;&#x43E;&#x44F;&#x441;&#x435; UTC.\"><code>Date</code></a>.", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-28T05:04:30", "review_tags": []}], "modified": "2015-05-01T23:58:12", "label": "Date.prototype.setHours()", "localization_tags": ["inprogress"], "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Date/setHours", "last_edit": "2015-05-01T23:58:08", "summary": "\u5730\u65b9\u6642\u306b\u57fa\u3065\u304d\u3001\u6307\u5b9a\u3055\u308c\u305f\u65e5\u6642\u306e\u300c\u6642\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u30021 January 1970 00:00:00 UTC\u304b\u3089\u66f4\u65b0\u3055\u308c\u305f<a href=\"/ja/docs/Web/JavaScript/Reference/Global_Objects/Date\" title=\"&#x65E5;&#x4ED8;&#x3084;&#x6642;&#x523B;&#x3092;&#x6271;&#x3046;&#x3053;&#x3068;&#x304C;&#x53EF;&#x80FD;&#x306A;&#x3001;JavaScript &#x306E; Date &#x30A4;&#x30F3;&#x30B9;&#x30BF;&#x30F3;&#x30B9;&#x3092;&#x751F;&#x6210;&#x3057;&#x307E;&#x3059;&#x3002;\"><code>Date</code></a>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8868\u3059\u6642\u9593\u307e\u3067\u306e\u30df\u30ea\u79d2\u3092\u8fd4\u3057\u307e\u3059\u3002", "sections": [{"id": "Quick_Links", "title": "Standard built-in objects Date Properties Date.prototype Methods 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() [Translate] Date.prototype.setHours() Date.prototype.setMilliseconds() [Translate] Date.prototype.setMinutes() [Translate] Date.prototype.setMonth() [Translate] Date.prototype.setSeconds() [Translate] Date.prototype.setTime() [Translate] 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() [Translate] Date.prototype.toDateString() [Translate] Date.prototype.toGMTString() [Translate] Date.prototype.toISOString() [Translate] Date.prototype.toJSON() Date.prototype.toLocaleDateString() [Translate] Date.prototype.toLocaleFormat() [Translate] Date.prototype.toLocaleString() [Translate] Date.prototype.toLocaleTimeString() [Translate] Date.prototype.toSource() [Translate] Date.prototype.toString() Date.prototype.toTimeString() [Translate] Date.prototype.toUTCString() [Translate] Date.prototype.valueOf() [Translate] Inheritance: Function Properties Function.arguments Function.arity Function.caller Function.displayName [Translate] Function.length Function.name Function.prototype Methods Function.prototype.apply() Function.prototype.bind() Function.prototype.call() Function.prototype.isGenerator() Function.prototype.toSource() Function.prototype.toString() Object Properties Object.prototype.__count__ [Translate] Object.prototype.__noSuchMethod__ Object.prototype.__parent__ Object.prototype.__proto__ [Translate] Object.prototype.constructor [Translate] Methods Object.prototype.__defineGetter__() Object.prototype.__defineSetter__() Object.prototype.__lookupGetter__() Object.prototype.__lookupSetter__() Object.prototype.hasOwnProperty() Object.prototype.isPrototypeOf() Object.prototype.propertyIsEnumerable() Object.prototype.toLocaleString() Object.prototype.toSource() Object.prototype.toString() Object.prototype.unwatch() Object.prototype.valueOf() Object.prototype.watch()"}, {"id": ".E6.A6.82.E8.A6.81", "title": "\u6982\u8981"}, {"id": "Syntax", "title": "\u69cb\u6587"}, {"id": "Versions_prior_to_JavaScript_1.3", "title": "Versions prior to JavaScript 1.3"}, {"id": "Parameters", "title": "\u5f15\u6570"}, {"id": "Description", "title": "\u8aac\u660e"}, {"id": "Examples", "title": "\u4f8b"}, {"id": "Example:_Using_setHours", "title": "\u4f8b: setHours() \u306e\u4f7f\u3044\u65b9"}, {"id": ".E4.BB.95.E6.A7.98", "title": "\u4ed5\u69d8"}, {"id": ".E3.83.96.E3.83.A9.E3.82.A6.E3.82.B6.E5.AE.9F.E8.A3.85.E7.8A.B6.E6.B3.81", "title": "\u30d6\u30e9\u30a6\u30b6\u5b9f\u88c5\u72b6\u6cc1"}, {"id": "See_also", "title": "\u95a2\u9023\u60c5\u5831"}], "id": 149135, "review_tags": ["editorial"]}