{"json_modified": "2015-08-06T12:01:05.456951", "slug": "Web/JavaScript/Referencia/Objectes_globals/Date/setYear", "tags": [], "locale": "ca", "title": "Date.prototype.setYear()", "translations": [{"title": "Date.prototype.setYear()", "url": "/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "prototype", "JavaScript", "deprecated", "Deprecated", "Method"], "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": [], "locale": "en-US", "last_edit": "2015-07-05T23:59:17", "review_tags": []}, {"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": []}, {"title": "Date.prototype.setYear()", "url": "/fr/docs/Web/JavaScript/Reference/Objets_globaux/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "deprecated", "Deprecated", "Method"], "summary": "Si valeurAnn\u00e9e
est un nombre entre 0 et 99 (inclus), alors l'ann\u00e9e de dateObj
sera d\u00e9finie \u00e0 1900 + valeurAnn\u00e9e
. Sinon, l'ann\u00e9e de dateObj
sera d\u00e9finie \u00e0 valeurAnn\u00e9e
.", "localization_tags": [], "locale": "fr", "last_edit": "2015-07-27T04:02:54", "review_tags": []}, {"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": []}, {"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": []}, {"title": "Date.prototype.setYear()", "url": "/ja/docs/Web/JavaScript/Reference/Global_Objects/Date/setYear", "tags": ["Reference", "Date", "R\u00e9f\u00e9rence", "prototype", "JavaScript", "Deprecated", "Method"], "summary": "\u5730\u65b9\u6642\u306b\u57fa\u3065\u304d\u3001\u6307\u5b9a\u3055\u308c\u305f\u65e5\u6642\u306e\u300c\u5e74\u300d\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002setYear()
\u306f\u897f\u66a6\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u306e\u3067(\"2000\u5e74\u554f\u984c\")\u3001 \u3082\u306f\u3084\u4f7f\u308f\u308c\u3066\u304a\u3089\u305a\u3001setFullYear()
\u30e1\u30bd\u30c3\u30c9\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-21T06:47:38", "review_tags": ["editorial"]}], "modified": "2015-08-06T12:01:04", "label": "Date.prototype.setYear()", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Objectes_globals/Date/setYear", "last_edit": "2015-08-06T12:00:59", "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()
.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Sintaxi", "title": "Sintaxi"}, {"id": "Par\u00e0metres", "title": "Par\u00e0metres"}, {"id": "Descripci\u00f3", "title": "Descripci\u00f3"}, {"id": "Exemples", "title": "Exemples"}, {"id": "Utilitzar_setYear()", "title": "Utilitzar "}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "Vegeu_tamb\u00e9", "title": "Vegeu tamb\u00e9"}], "id": 159229, "review_tags": []}