{"json_modified": "2016-08-19T02:30:06.232972", "uuid": "648c4f95-de44-4270-97f7-8b76f10d6dc3", "title": "Date.prototype.setYear()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "Prototype", "JavaScript", "Deprecated", "Method"], "translations": [{"uuid": "00ddb2bc-11ad-48a6-8da6-31f4bb404bb0", "title": "Date.prototype.setYear()", "url": "/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Date/setYear", "tags": [], "summary": "El m\u00e8tode setYear()
assigna l'any per a una data especificada, d'acord a l'hora local. Com que setYear()
no utilitza anys complerts (\"el problema de l'any 2000\"), aquest m\u00e8tode est\u00e0 en des\u00fas i s'ha reempla\u00e7at pel m\u00e8tode setFullYear()
.", "localization_tags": [], "locale": "ca", "last_edit": "2015-08-06T12:00:59", "review_tags": []}, {"uuid": "185132a5-d288-4957-babe-76af07c43a22", "title": "Date.prototype.setYear()", "url": "/de/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "Prototype", "JavaScript", "Deprecated", "Method"], "summary": "Die Anzahl der Millisekunden zwischen dem 1. Januar 1970 00:00:00 UTC und dem ge\u00e4nderten date Objekt.", "localization_tags": [], "locale": "de", "last_edit": "2016-08-04T07:29:55", "review_tags": []}, {"uuid": "70d097e4-5d56-4277-8921-957a98764057", "title": "Date.prototype.setYear()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/setYear", "tags": ["D\u00e9pr\u00e9ci\u00e9", "Date", "R\u00e9f\u00e9rence", "Prototype", "JavaScript", "M\u00e9thode"], "summary": "Le nombre de millisecondes \u00e9coul\u00e9es entre le premier janvier 1970 minuit, UTC et la date mise \u00e0 jour.", "localization_tags": [], "locale": "fr", "last_edit": "2016-08-01T12:45:42", "review_tags": []}, {"uuid": "026e8c1c-41e5-4f79-b0b8-fc8a95241ea7", "title": "Date.prototype.setYear()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "Prototype", "JavaScript", "Deprecated", "Method"], "summary": "setYear()
\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u5730\u65b9\u6642\u306b\u57fa\u3065\u304d\u3001\u6307\u5b9a\u3055\u308c\u305f\u65e5\u4ed8\u306e\u300c\u5e74\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002 setYear()
\u306f\u5b8c\u5168\u306a\u6841\u6570\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u305f\u3081 (\u3044\u308f\u3086\u308b 2000 \u5e74\u554f\u984c)\u3001\u4f7f\u7528\u3055\u308c\u306a\u304f\u306a\u308a\u3001setFullYear()
\u30e1\u30bd\u30c3\u30c9\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3057\u305f\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2016-08-19T02:29:56", "review_tags": []}, {"uuid": "5cc176ce-d0b4-43cb-9354-70aaa4bfe5bc", "title": "Date.prototype.setYear()", "url": "/pl/docs/Web/JavaScript/Referencje/Obiekty/Date/setYear", "tags": ["Prototype", "Method", "Date", "JavaScript"], "summary": "Ustawia rok dla okre\u015blonej daty stosownie do czasu lokalnego. Aby m\u00f3c korzysta\u0107 z rocznik\u00f3w przed i po roku 2000, powiniene\u015b u\u017cy\u0107 metody setFullYear()
zawieraj\u0105cej setYear()
, kt\u00f3ra rok potrafi okre\u015bli\u0107 w pe\u0142ni.", "localization_tags": [], "locale": "pl", "last_edit": "2015-04-19T10:21:34", "review_tags": []}, {"uuid": "2bf99dfd-ba72-4d49-8616-393bbd3a3f34", "title": "Date.prototype.setYear()", "url": "/ru/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "Prototype", "JavaScript", "Deprecated", "Method"], "summary": "", "localization_tags": [], "locale": "ru", "last_edit": "2014-10-29T05:54:43", "review_tags": []}, {"uuid": "1e6a256d-cbbf-4288-8eee-190a7c1e57ad", "title": "Date.prototype.setYear()", "url": "/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": [], "summary": "The setYear()
method sets the year for a specified date according to local time. Because setYear
does not set full years (\"year 2000 problem\"), it is no longer used and has been replaced by the setFullYear
method.", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2015-04-17T05:08:15", "review_tags": []}], "modified": "2016-08-01T07:20:27", "label": "Date.prototype.setYear()", "localization_tags": [], "locale": "en-US", "id": 7705, "last_edit": "2016-08-01T07:20:08", "summary": "The setYear()
method sets the year for a specified date according to local time. Because setYear()
does not set full years (\"year 2000 problem\"), it is no longer used and has been replaced by the setFullYear()
method.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Parameters", "title": "Parameters"}, {"id": "Return_value", "title": "Return value"}, {"id": "Description", "title": "Description"}, {"id": "Examples", "title": "Examples"}, {"id": "Using_setYear()", "title": "Using "}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Global_Objects/Date/setYear", "review_tags": []}