{"id":28862,"date":"2024-08-31T23:57:38","date_gmt":"2024-08-31T15:57:38","guid":{"rendered":"https:\/\/0592ban.cn\/?p=28862"},"modified":"2024-08-31T23:57:38","modified_gmt":"2024-08-31T15:57:38","slug":"%e5%85%ac%e5%8e%861988%e5%b9%b47%e6%9c%8822%e6%97%a5%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%85%ac%e5%8e%861988-7-13%e4%b8%91%e6%97%b6%e5%b1%9e%e9%be%99","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/08\/31\/%e5%85%ac%e5%8e%861988%e5%b9%b47%e6%9c%8822%e6%97%a5%e5%87%ba%e7%94%9f%e7%9a%84%e4%ba%ba%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-%e5%85%ac%e5%8e%861988-7-13%e4%b8%91%e6%97%b6%e5%b1%9e%e9%be%99\/","title":{"rendered":"\u516c\u53861988\u5e747\u670822\u65e5\u51fa\u751f\u7684\u4eba\u662f\u4ec0\u4e48\u661f\u5ea7 (\u516c\u53861988.7.13\u4e11\u65f6\u5c5e\u9f99)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u516c\u53861988.7.13\u4e11\u65f6\u5c5e\u9f99\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/08\/26a0e9f9-0ae3-4bbb-addc-26cab836740a.jpg\"\/><\/p>\n<form>\n <label for=\"birthday\"><br \/>\n  \u4f60\u7684\u519c\u5386\u751f\u65e5\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthday\" name=\"birthday\" required=\"\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p>\n<!--?php\n    if (isset($_GET['birthday'])) {\n      $lunar_birthday = $_GET['birthday'];\n      $solar_birthday = convertLunarToSolar($lunar_birthday);\n      $zodiac_sign = getZodiacSign($solar_birthday);\n      echo \"\u4f60\u7684\u9633\u5386\u751f\u65e5\u4e3a\uff1a{$solar_birthday}<br--><br \/>\n&#8220;;<br \/>\n      echo &#8220;\u4f60\u7684\u661f\u5ea7\u4e3a\uff1a{$zodiac_sign}<br \/>\n<br \/>\n&#8220;;<br \/>\n    }<br \/>\n  ?&gt;<\/p>\n<h2>\n \u661f\u5ea7\u5217\u8868<br \/>\n<\/h2>\n<ul>\n<li>\n  \u767d\u7f8a\u5ea7\uff1a03\/21-04\/20\uff0c\u706b\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u9c9c\u7ea2\u8272\u3001\u8840\u7ea2\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a6,7\n <\/li>\n<li>\n  \u91d1\u725b\u5ea7\uff1a04\/21-0520\uff0c\u571f\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u7d2b\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a1,9\n <\/li>\n<li>\n  \u53cc\u5b50\u5ea7\uff1a05\/21-06\/21\uff0c\u98ce\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u6de1\u7c89\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a3,5,7\n <\/li>\n<li>\n  \u5de8\u87f9\u5ea7\uff1a06\/22-07\/22\uff0c\u6c34\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u5927\u5730\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a8,3\n <\/li>\n<li>\n  \u72ee\u5b50\u5ea7\uff1a07\/23-08\/22\uff0c\u706b\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u8910\u8272\u3001\u6df1\u7ea2\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a5,9\n <\/li>\n<li>\n  \u5904\u5973\u5ea7\uff1a08\/23-09\/22\uff0c\u571f\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u9ec4\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a4,8\n <\/li>\n<li>\n  \u5929\u79e4\u5ea7\uff1a09\/23-10\/23\uff0c\u98ce\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u6a59\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a6,9\n <\/li>\n<li>\n  \u5929\u874e\u5ea7\uff1a10\/24-11\/22\uff0c\u6c34\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u6697\u7070\u8272\u3001\u6df1\u7ea2\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a3,5\n <\/li>\n<li>\n  \u5c04\u624b\u5ea7\uff1a11\/23-12\/21\uff0c\u706b\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u9ed1\uff0c\u767d\uff0c\u7070\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a9\n <\/li>\n<li>\n  \u6469\u7faf\u5ea7\uff1a12\/22-01\/19\uff0c\u571f\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u6df1\u7ea2\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a3,7\n <\/li>\n<li>\n  \u6c34\u74f6\u5ea7\uff1a01\/20-02\/18\uff0c\u98ce\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u91d1\u9ec4\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a4,8\n <\/li>\n<li>\n  \u53cc\u9c7c\u5ea7\uff1a02\/19-03\/20\uff0c\u6c34\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff1a\u7d2b\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff1a5\n <\/li>\n<\/ul>\n<h2>\n \u519c\u5386\u9633\u5386\u8f6c\u6362<br \/>\n<\/h2>\n<form>\n <label for=\"lunar_date\"><br \/>\n  \u519c\u5386\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"lunar_date\" name=\"lunar_date\" required=\"\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u8f6c\u6362\u4e3a\u9633\u5386\"\/><br \/>\n<\/form>\n<p>\n<!--?php\n    if (isset($_GET['lunar_date'])) {\n      $lunar_date = $_GET['lunar_date'];\n      $solar_date = convertLunarToSolar($lunar_date, false);\n      echo \"\u9633\u5386\u65e5\u671f\u4e3a\uff1a{$solar_date}\";\n    }\n  ?--><\/p>\n<h2>\n \u9633\u5386\u519c\u5386\u8f6c\u6362<br \/>\n<\/h2>\n<form>\n <label for=\"solar_date\"><br \/>\n  \u9633\u5386\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"solar_date\" name=\"solar_date\" required=\"\" type=\"date\"\/><br \/>\n <input type=\"submit\" value=\"\u8f6c\u6362\u4e3a\u519c\u5386\"\/><br \/>\n<\/form>\n<p>\n<!--?php\n    if (isset($_GET['solar_date'])) {\n      $solar_date = $_GET['solar_date'];\n      $lunar_date = convertSolarToLunar($solar_date);\n      echo \"\u519c\u5386\u65e5\u671f\u4e3a\uff1a{$lunar_date}\";\n    }\n  ?--><\/p>\n<h2>\n \u8fb9\u754c\u661f\u5ea7<br \/>\n<\/h2>\n<table border=\"1\">\n<tbody>\n<tr>\n<th>\n    \u661f\u5ea7\n   <\/th>\n<th>\n    \u5f00\u59cb\u65e5\u671f\n   <\/th>\n<th>\n    \u7ed3\u675f\u65e5\u671f\n   <\/th>\n<\/tr>\n<tr>\n<td>\n    \u72ee\u5b50-\u5904\u5973\n   <\/td>\n<td>\n    8\/19\n   <\/td>\n<td>\n    8\/25\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u5904\u5973-\u5929\u79e4\n   <\/td>\n<td>\n    9\/16\n   <\/td>\n<td>\n    9\/23\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u5929\u79e4-\u5929\u874e\n   <\/td>\n<td>\n    10\/23\n   <\/td>\n<td>\n    10\/30\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u5929\u874e-\u5c04\u624b\n   <\/td>\n<td>\n    11\/21\n   <\/td>\n<td>\n    11\/28\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u5c04\u624b-\u6469\u7faf\n   <\/td>\n<td>\n    12\/20\n   <\/td>\n<td>\n    12\/27\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u6469\u7faf-\u6c34\u74f6\n   <\/td>\n<td>\n    1\/19\n   <\/td>\n<td>\n    1\/26\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u6c34\u74f6-\u53cc\u9c7c\n   <\/td>\n<td>\n    2\/15\n   <\/td>\n<td>\n    2\/20\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><script>\n function convertLunarToSolar(lunar_date, is_accurate = true) {\n      var lunar_year = parseInt(lunar_date.substring(0, 4));\n      var lunar_month = parseInt(lunar_date.substring(5, 7));\n      var lunar_day = parseInt(lunar_date.substring(8, 10));\n      var solar_date = getSolarDateFromLunarDate(lunar_year, lunar_month, lunar_day);\n      if (!is_accurate) {\n        solar_date = solar_date.substr(0, 10);\n      }\n      return solar_date;\n    }<\/p>\n<p>    function convertSolarToLunar(solar_date) {\n      var solar_year = parseInt(solar_date.substring(0, 4));\n      var solar_month = parseInt(solar_date.substring(5, 7));\n      var solar_day = parseInt(solar_date.substring(8, 10));\n      var lunar_date = getLunarDateFromSolarDate(solar_year, solar_month, solar_day);\n      return lunar_date;\n    }<\/p>\n<p>    function getZodiacSign(solar_date) {\n      var solar_month = parseInt(solar_date.substring(5, 7));\n      var solar_day = parseInt(solar_date.substring(8, 10));\n      var zodiac_sign = \"\";<\/p>\n<p>      if (solar_month == 3 && solar_day >= 21 || solar_month == 4 && solar_day <= 20) {\n        zodiac_sign = \"\u767d\u7f8a\u5ea7\";\n      } else if (solar_month == 4 &#038;&#038; solar_day >= 21 || solar_month == 5 && solar_day <= 21) {\n        zodiac_sign = \"\u91d1\u725b\u5ea7\";\n      } else if (solar_month == 5 &#038;&#038; solar_day >= 22 || solar_month == 6 && solar_day <= 21) {\n        zodiac_sign = \"\u53cc\u5b50\u5ea7\";\n      } else if (solar_month == 6 &#038;&#038; solar_day >= 22 || solar_month == 7 && solar_day <= 22) {\n        zodiac_sign = \"\u5de8\u87f9\u5ea7\";\n      } else if (solar_month == 7 &#038;&#038; solar_day >= 23 || solar_month == 8 && solar_day <= 22) {\n        zodiac_sign = \"\u72ee\u5b50\u5ea7\";\n      } else if (solar_month == 8 &#038;&#038; solar_day >= 23 || solar_month == 9 && solar_day <= 22) {\n        zodiac_sign = \"\u5904\u5973\u5ea7\";\n      } else if (solar_month == 9 &#038;&#038; solar_day >= 23 || solar_month == 10 && solar_day <= 23) {\n        zodiac_sign = \"\u5929\u79e4\u5ea7\";\n      } else if (solar_month == 10 &#038;&#038; solar_day >= 24 || solar_month == 11 && solar_day <= 22) {\n        zodiac_sign = \"\u5929\u874e\u5ea7\";\n      } elseif (solar_month == 11 &#038;&#038; solar_day >= 23 || solar_month == 12 && solar_day <= 20) {\n        zodiac_sign = \"\u5c04\u624b\u5ea7\";\n      } else if (solar_month == 12 &#038;&#038; solar_day >= 21 ||solar_month == 1 && solar_day <= 19) {\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f60\u7684\u519c\u5386\u751f\u65e5\uff0cecho\u4f60\u7684\u661f\u5ea7\u4e3a\uff0c$zodiac\uff0csign\uff0c?&#038;gt\uff0c\u661f\u5ea7\u5217\u8868\u767d\u7f8a\u5ea7\uff0c03\uff0c21\uff0c04\uff0c20\uff0c\u706b\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff0c\u9c9c\u7ea2\u8272\u3001\u8840\u7ea2\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff0c6\uff0c7\u91d1\u725b\u5ea7\uff0c04\uff0c21\uff0c0520\uff0c\u571f\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff0c\u7d2b\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff0c1\uff0c9\u53cc\u5b50\u5ea7\uff0c05\uff0c21\uff0c06\uff0c21\uff0c\u98ce\u8c61\u661f\u5ea7\uff0c\u5e78\u8fd0\u989c\u8272\uff0c\u6de1\u7c89\u8272\uff0c\u5e78\u8fd0\u6570\u5b57\uff0c3\uff0c5\uff0c7\u5de8\u87f9\u5ea7\uff0c06\uff0c&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":28861,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12155],"class_list":["post-28862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-12155"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=28862"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28862\/revisions"}],"predecessor-version":[{"id":28863,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28862\/revisions\/28863"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/28861"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=28862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=28862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=28862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}