{"id":936,"date":"2024-05-30T08:05:05","date_gmt":"2024-05-30T00:05:05","guid":{"rendered":"https:\/\/0592ban.cn\/?p=936"},"modified":"2024-05-30T08:05:05","modified_gmt":"2024-05-30T00:05:05","slug":"1990%e5%b9%b48%e6%9c%882%e6%97%a57-20%e4%b8%8a%e5%8d%87%e6%98%9f%e5%ba%a7%e6%9f%a5%e8%af%a2-1990%e5%b9%b48%e6%9c%88%e5%b1%9e%e9%a9%ac%e6%98%af%e4%bb%80%e4%b9%88%e5%91%bd","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/05\/30\/1990%e5%b9%b48%e6%9c%882%e6%97%a57-20%e4%b8%8a%e5%8d%87%e6%98%9f%e5%ba%a7%e6%9f%a5%e8%af%a2-1990%e5%b9%b48%e6%9c%88%e5%b1%9e%e9%a9%ac%e6%98%af%e4%bb%80%e4%b9%88%e5%91%bd\/","title":{"rendered":"1990\u5e748\u67082\u65e57 20\u4e0a\u5347\u661f\u5ea7\u67e5\u8be2 (1990\u5e748\u6708\u5c5e\u9a6c\u662f\u4ec0\u4e48\u547d)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"20\u4e0a\u5347\u661f\u5ea7\u67e5\u8be2\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/05\/860d7b27-aeb2-4abe-baee-81d5aeb63724.jpg\"\/><\/p>\n<p>\n \u6839\u636e\u51fa\u751f\u65e5\u671f\u548c\u65f6\u95f4\u67e5\u8be2\u4f60\u7684\u4e0a\u5347\u661f\u5ea7\u3002\u8bf7\u6ce8\u610f\uff0c\u7cbe\u786e\u7684\u65f6\u95f4\u5f88\u91cd\u8981\uff0c\u8bef\u5dee\u8d85\u8fc715\u5206\u949f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7ed3\u679c\u4e0d\u51c6\u786e\u3002\n<\/p>\n<form action=\"index.php\" method=\"post\">\n <label for=\"birthdate\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthdate\" name=\"birthdate\" required=\"\" type=\"date\"\/><br \/>\n <label for=\"birthtime\"><br \/>\n  \u51fa\u751f\u65f6\u95f4\uff1a<br \/>\n <\/label><br \/>\n <input id=\"birthtime\" name=\"birthtime\" required=\"\" type=\"time\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p><!--?php\n  if (isset($_POST['birthdate']) && isset($_POST['birthtime'])) {\n    $birthdate = $_POST['birthdate'];\n    $birthtime = $_POST['birthtime'];\n    $date = new DateTime($birthdate . ' ' . $birthtime);\n    $timezone = new DateTimeZone('Asia\/Shanghai');\n    $date---><br \/>\nsetTimezone($timezone);<\/p>\n<p>    $longitude = 121.472644;<br \/>\n    $latitude = 31.230416;<br \/>\n    $elevation = 0;<\/p>\n<p>    $sidereal_time = sidereal_time($longitude, $latitude, $elevation, $date);<br \/>\n    $ascending_sign = ascending_sign($sidereal_time);<\/p>\n<p>    echo &#8221;<\/p>\n<h2>\n \u67e5\u8be2\u7ed3\u679c\uff1a<br \/>\n<\/h2>\n<p>&#8220;;<br \/>\n    echo &#8220;&#8221;;<br \/>\n    echo &#8220;&#8221;;<br \/>\n    echo &#8220;&#8221;;<br \/>\n    echo &#8220;&#8221;;<br \/>\n    echo &#8221;<\/p>\n<table>\n<tbody>\n<tr>\n<th>\n    \u51fa\u751f\u65e5\u671f\n   <\/th>\n<td>\n    $birthdate\n   <\/td>\n<\/tr>\n<tr>\n<th>\n    \u51fa\u751f\u65f6\u95f4\n   <\/th>\n<td>\n    $birthtime\n   <\/td>\n<\/tr>\n<tr>\n<th>\n    \u4e0a\u5347\u661f\u5ea7\n   <\/th>\n<td>\n    $ascending_sign\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8220;;<br \/>\n  }<\/p>\n<p>  function sidereal_time($longitude, $latitude, $elevation, $datetime) {<br \/>\n    $julian_date = julian_date($datetime);<br \/>\n    $greenwich_sidereal_time = greenwich_sidereal_time($julian_date);<br \/>\n    $local_sidereal_time = local_sidereal_time($longitude, $greenwich_sidereal_time);<br \/>\n    $sidereal_time_at_birth = sidereal_time_at_birth($latitude, $elevation, $local_sidereal_time);<br \/>\n    return $sidereal_time_at_birth;<br \/>\n  }<\/p>\n<p>  function julian_date($datetime) {<br \/>\n    $year = $datetime-&gt;format(&#8216;Y&#8217;);<br \/>\n    $month = $datetime-&gt;format(&#8216;m&#8217;);<br \/>\n    $day = $datetime-&gt;format(&#8216;d&#8217;);<br \/>\n    $hour = $datetime-&gt;format(&#8216;H&#8217;);<br \/>\n    $minute = $datetime-&gt;format(&#8216;i&#8217;);<br \/>\n    $second = $datetime-&gt;format(&#8216;s&#8217;);<br \/>\n    $julian_date = 367  $year &#8211; parseInt(($7  ($year + parseInt(($month + 9) \/ 12))) \/ 4) + parseInt((275  $month) \/ 9) + $day + 1721013.5 + ($hour + $minute \/ 60 + $second \/ 3600) \/ 24;<br \/>\n    return $julian_date;<br \/>\n  }<\/p>\n<p>  function greenwich_sidereal_time($julian_date) {<br \/>\n    $sidereal_time = 6.697374558 + (0.06570982441908  $julian_date) + (2400.051262  ($julian_date &#8211; 2451545.0) \/ 36525) + 0.00002581  pow(($julian_date &#8211; 2451545.0) \/ 36525, 2);<br \/>\n    $sidereal_time = fmod($sidereal_time, 24);<br \/>\n    return $sidereal_time;<br \/>\n  }<\/p>\n<p>  function local_sidereal_time($longitude, $greenwich_sidereal_time) {<br \/>\n    $local_sidereal_time = fmod($greenwich_sidereal_time + ($longitude \/ 15), 24);<br \/>\n    return $local_sidereal_time;<br \/>\n  }<\/p>\n<p>  function sidereal_time_at_birth($latitude, $elevation, $local_sidereal_time) {<br \/>\n    $sidereal_time_at_birth = fmod($local_sidereal_time + 0.06570982441908  ($elevation \/ sin($latitude  pi() \/ 180.0)) \/ 3600.0, 24);<br \/>\n    return $<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6839\u636e\u51fa\u751f\u65e5\u671f\u548c\u65f6\u95f4\u67e5\u8be2\u4f60\u7684\u4e0a\u5347\u661f\u5ea7\uff0c\u8bf7\u6ce8\u610f\uff0c\u7cbe\u786e\u7684\u65f6\u95f4\u5f88\u91cd\u8981\uff0c\u8bef\u5dee\u8d85\u8fc715\u5206\u949f\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7ed3\u679c\u4e0d\u51c6\u786e\uff0c\u51fa\u751f\u65e5\u671f\uff0c\u51fa\u751f\u65f6\u95f4\uff0csetTimezone\uff0c$timezone\uff0c$longitude=121.472644\uff0c$latitude=31.230416\uff0c$elevation=0\uff0c$sidereal\uff0ctime=sidereal\uff0ctime\uff0c$&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":935,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[618,619],"class_list":["post-936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-618","tag-619"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/936","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=936"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/936\/revisions"}],"predecessor-version":[{"id":937,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/936\/revisions\/937"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/935"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}