{"id":443911,"date":"2025-01-02T15:05:07","date_gmt":"2025-01-02T15:05:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=443911"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2025-01-02T15:05:07","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=443911","title":{"rendered":"<span>\u041a\u043e\u043d\u0435\u0446 \u0433\u043e\u0434\u0430 \u2014 \u043d\u043e\u0432\u044b\u0435 \u0431\u0430\u0433\u0438 \u0441 \u0434\u0430\u0442\u0430\u043c\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f (24-12-30) \u043d\u0430 \u043f\u0440\u0435\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439\u0448\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0449\u0435\u0442 \u0444\u0430\u0439\u043b \u043f\u043e \u0434\u0430\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432 \u0438\u043c\u0435\u043d\u0438, \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0447\u0435\u0440\u0430\u0448\u043d\u0435\u0433\u043e \u0434\u043d\u044f (24-12-29) \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0438\u0449\u0435\u0442 \u0444\u0430\u0439\u043b \u0437\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0433\u043e\u0434 (25-12-29).<\/p>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u043c\u0438\u0441\u0442\u0438\u043a\u0430, \u0432\u0441\u0451 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0441 \u043b\u0435\u0442\u0430, \u0438 \u043a\u0430\u043a \u043d\u0430 \u0437\u043b\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u0433\u043e\u0434\u0430 &#8230; \u0438 \u043a\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0432\u0438\u043d\u043e\u0432\u0430\u0442?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5ac\/583\/77a\/5ac58377a8e6f413475bdaf9ac9c7f01.png\" alt=\"\" title=\"\" width=\"734\" height=\"569\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5ac\/583\/77a\/5ac58377a8e6f413475bdaf9ac9c7f01.png\"\/><\/figure>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043a\u0442\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u0438\u043d\u043e\u0439, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">public static void main(String[] args) throws ParseException {   String YY_pattern = \"YY-MM-dd\";   String yy_pattern = \"yy-MM-dd\";        SimpleDateFormat weekYear = new SimpleDateFormat(YY_pattern);   SimpleDateFormat year = new SimpleDateFormat(yy_pattern);      Date date = new SimpleDateFormat(\"yyy-MM-dd HH:mm\").parse(\"2024-12-30 12:00\");    System.out.println(\"Today    :: \" + date);   System.out.println(YY_pattern + \" :: \" + weekYear.format(date));   System.out.println(yy_pattern + \" :: \" + year.format(date)); }<\/code><\/pre>\n<p>\u0418 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">Today    :: Mon Dec 30 12:00:00 EET 2024 YY-MM-dd :: 25-12-30 yy-MM-dd :: 24-12-30<\/code><\/pre>\n<p>\u0410 \u0432\u0441\u0451 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0435 \u0434\u0430\u0442\u044b \u0431\u044b\u043b \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0433\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0433\u043e\u0434\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0434\u043d\u044f:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/feb\/9ae\/286\/feb9ae2865f69c60097fc7f63db45c41.png\" alt=\"javadoc\" title=\"javadoc\" width=\"1328\" height=\"1330\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/feb\/9ae\/286\/feb9ae2865f69c60097fc7f63db45c41.png\"\/><\/p>\n<div><figcaption>javadoc<\/figcaption><\/div>\n<\/figure>\n<p> \u0421 \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0435\u0439 2025 \u0433\u043e\u0434\u0430, \u043a\u043e\u043b\u043b\u0435\u0433\u0438!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/870994\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">C \u041d\u043e\u0432\u044b\u043c \u0413\u043e\u0434\u043e\u043c?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">80.26% <\/span><span class=\"tm-article-poll__answer-label\">\u0414\u0430<\/span><span class=\"tm-article-poll__answer-votes\">61<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 80.26%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">23.68% <\/span><span class=\"tm-article-poll__answer-label\">\u041d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">18<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 23.68%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 76 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 13 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/870994\/\"> https:\/\/habr.com\/ru\/articles\/870994\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f (24-12-30) \u043d\u0430 \u043f\u0440\u0435\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439\u0448\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0449\u0435\u0442 \u0444\u0430\u0439\u043b \u043f\u043e \u0434\u0430\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432 \u0438\u043c\u0435\u043d\u0438, \u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0447\u0435\u0440\u0430\u0448\u043d\u0435\u0433\u043e \u0434\u043d\u044f (24-12-29) \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u0438\u0449\u0435\u0442 \u0444\u0430\u0439\u043b \u0437\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0433\u043e\u0434 (25-12-29).<\/p>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u043c\u0438\u0441\u0442\u0438\u043a\u0430, \u0432\u0441\u0451 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0441 \u043b\u0435\u0442\u0430, \u0438 \u043a\u0430\u043a \u043d\u0430 \u0437\u043b\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u0433\u043e\u0434\u0430 &#8230; \u0438 \u043a\u0442\u043e \u0432 \u044d\u0442\u043e\u043c \u0432\u0438\u043d\u043e\u0432\u0430\u0442?<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043a\u0442\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u0438\u043d\u043e\u0439, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"java\">public static void main(String[] args) throws ParseException {   String YY_pattern = \"YY-MM-dd\";   String yy_pattern = \"yy-MM-dd\";        SimpleDateFormat weekYear = new SimpleDateFormat(YY_pattern);   SimpleDateFormat year = new SimpleDateFormat(yy_pattern);      Date date = new SimpleDateFormat(\"yyy-MM-dd HH:mm\").parse(\"2024-12-30 12:00\");    System.out.println(\"Today    :: \" + date);   System.out.println(YY_pattern + \" :: \" + weekYear.format(date));   System.out.println(yy_pattern + \" :: \" + year.format(date)); }<\/code><\/pre>\n<p>\u0418 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">Today    :: Mon Dec 30 12:00:00 EET 2024 YY-MM-dd :: 25-12-30 yy-MM-dd :: 24-12-30<\/code><\/pre>\n<p>\u0410 \u0432\u0441\u0451 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0435 \u0434\u0430\u0442\u044b \u0431\u044b\u043b \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u0433\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043d\u0435\u0434\u0435\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0433\u043e\u0434\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0434\u043d\u044f:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>javadoc<\/figcaption><\/div>\n<\/figure>\n<p> \u0421 \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0435\u0434\u0435\u043b\u0435\u0439 2025 \u0433\u043e\u0434\u0430, \u043a\u043e\u043b\u043b\u0435\u0433\u0438!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><\/p>\n<div class=\"tm-article-poll-container\"><!--[--><\/p>\n<div class=\"tm-article-poll tm-article-poll_variant-bordered\">\n<div class=\"tm-notice tm-notice_positive tm-article-poll__notice\"><!----><\/p>\n<div class=\"tm-notice__inner\"><!----><\/p>\n<div class=\"tm-notice__content\" data-test-id=\"notice-content\"><!--[--><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/articles\/870994\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><!--]--><\/div>\n<\/div>\n<\/div>\n<p><!--[--><\/p>\n<div class=\"tm-article-poll__header\">C \u041d\u043e\u0432\u044b\u043c \u0413\u043e\u0434\u043e\u043c?<\/div>\n<div class=\"tm-article-poll__answers\"><!--[--><\/p>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">80.26% <\/span><span class=\"tm-article-poll__answer-label\">\u0414\u0430<\/span><span class=\"tm-article-poll__answer-votes\">61<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width: 80.26%\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">23.68% <\/span><span class=\"tm-article-poll__answer-label\">\u041d\u0435\u0442<\/span><span class=\"tm-article-poll__answer-votes\">18<\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width: 23.68%\"><\/div>\n<\/div>\n<\/div>\n<p><!--]--><\/div>\n<div class=\"tm-article-poll__stats\"> \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 76 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.   \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u043b\u0438\u0441\u044c 13 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <\/div>\n<p><!--]--><\/div>\n<p><!--]--><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/870994\/\"> https:\/\/habr.com\/ru\/articles\/870994\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-443911","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443911"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/443911\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}