{"id":202416,"date":"2025-05-13T12:08:00","date_gmt":"2025-05-13T04:08:00","guid":{"rendered":"https:\/\/server.hk\/cnblog\/202416\/"},"modified":"2025-05-13T12:08:00","modified_gmt":"2025-05-13T04:08:00","slug":"%e6%97%b6%e9%97%b4%e6%95%b0%e6%8d%ae%e7%b3%bb%e5%88%97%ef%bc%9a%e6%95%85%e4%ba%8b%e7%9a%84%e5%85%b6%e4%bd%99%e9%83%a8%e5%88%86","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/202416\/","title":{"rendered":"\u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>\u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u4eec\u53c8\u89c1\u9762\u4e86\u554a~\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300a\u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206\u300b<\/span>\u7684\u5185\u5bb9\u4e2d\u5c06\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u3002\u5982\u679c\u4f60\u6b63\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u77e5\u8bc6\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\uff0c\u4ee5\u540e\u4f1a\u7ed9\u5927\u5bb6\u5e26\u6765\u66f4\u591a<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u76f8\u5173\u6587\u7ae0\uff0c\u5e0c\u671b\u6211\u4eec\u80fd\u4e00\u8d77\u8fdb\u6b65\uff01\u4e0b\u9762\u5c31\u5f00\u59cb\u672c\u6587\u7684\u6b63\u5f0f\u5185\u5bb9~<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241012\/1728742542670a848e08530.jpg\" class=\"aligncenter\"><\/p>\n<h2> \u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206 &#8211; adatosystems <\/h2>\n<p>\u81ea\u4ece\u6211\u5199\u6709\u5173 php zmanim \u7684\u6587\u7ae0\u4ee5\u6765\u5df2\u7ecf\u6709\u4e00\u6bb5\u65f6\u95f4\u4e86\u2014\u2014\u6211\u7528\u5b83\u6240\u505a\u7684\u5de5\u4f5c\u4ee5\u53ca\u6211\u5728\u5b9e\u73b0\u5b83\u65f6\u5b66\u5230\u7684\u4e1c\u897f\u3002\u4f46\u5c3d\u7ba1\u803d\u8bef\u4e86\u65f6\u95f4\uff0c\u6211\u59cb\u7ec8\u6253\u7b97\u7ee7\u7eed\u8c08\u8bdd\u3002\u8fd9\u5c31\u662f\u6211\u4eec\u4eca\u5929\u8981\u505a\u7684<\/p>\n<p>\u5728\u6211\u7684\u7b2c\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u89e3\u91ca\u4e86\u5982\u4f55\u5b89\u88c5\u548c\u5f00\u59cb\u4f7f\u7528 php zmanim \u5e93\u3002\u7136\u540e\u5728\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u6df1\u5165\u7814\u7a76\u4e86\u8ba1\u7b97\u66f4\u590d\u6742\u7684\u65f6\u95f4\u4ee5\u53ca\u8be5\u5de5\u5177\u7684\u771f\u6b63\u5a01\u529b\u2014\u2014\u5c06\u6700\u5e38\u89c1\u7684\u62c9\u6bd4\u89c2\u70b9\u5e94\u7528\u4e8e\u5404\u79cd zmanim\u3002\u6211\u5c06\u4ece\u4e0a\u6b21\u505c\u4e0b\u7684\u5730\u65b9\u7ee7\u7eed\uff0c\u5c3d\u91cf\u51cf\u5c11\u91cd\u53e0\uff0c\u56e0\u6b64\uff0c\u5982\u679c\u60a8\u9700\u8981\u82b1\u4e00\u70b9\u65f6\u95f4\u52a0\u5feb\u901f\u5ea6\uff0c\u6211\u5df2\u94fe\u63a5\u5230\u4e4b\u524d\u7684\u5e16\u5b50\u3002<\/p>\n<p>\u4eca\u5929\u7684\u76ee\u6807\u662f\u63a2\u7d22 php zmanim \u7684\u4f7f\u7528\uff0c\u8d85\u8d8a\u76f8\u5bf9\u7b80\u5355\u7684\u5e93\u4f7f\u7528\u3002\u5176\u4e2d\u5305\u62ec\uff1a<\/p>\n<ul>\n<li> \u5236\u5b9a\u6807\u51c6\u65f6\u95f4\u5e76\u6839\u636e\u72b9\u592a\u6559\u5802\u7684\u7279\u5b9a\u7528\u4f8b\u8fdb\u884c\u8c03\u6574\uff08\u201cmincha \u6bcf\u5929\u5728 shkia \u4e4b\u524d 25 \u5206\u949f\u5f00\u59cb\u201d\uff09\u3002<\/li>\n<li> \u4f7f\u7528 php zmanim \u5e93\u51fd\u6570\u548c\u65b9\u6cd5\u63d0\u4f9b\u975e\u65f6\u95f4\u8ba1\u7b97 &#8211; \u4f8b\u5982\u6bcf\u5468\u6258\u62c9\u90e8\u5206\u3001\u5e0c\u4f2f\u6765\u65e5\u671f\u4ee5\u53ca\u6307\u5b9a\u65e5\u671f\u662f\u5426\u4e3a\u5047\u671f\uff08\u5982 rosh chodesh \u6216 sukkot\uff09\u3002<\/li>\n<\/ul>\n<h2> <strong>\u81f4\u8c22<\/strong> <\/h2>\n<p>\u9996\u5148\u9700\u8981\u518d\u6b21\u5411\u90a3\u4e9b\u4f7f\u8fd9\u4e00\u5207\u6210\u4e3a\u53ef\u80fd\u7684\u4eba\u4eec\u8868\u793a\u611f\u8c22\u3002\u5728\u4e00\u957f\u4e32\u540d\u5b57\u4e2d\u6700\u91cd\u8981\u7684\u662f zachary weixelbaum\uff0c\u4ed6\u662f php zmanim \u5e93\u672c\u8eab\u7684\u7ef4\u62a4\u8005\uff1b\u548c eliyahu hershfeld\uff1aphp zmanim \u6240\u57fa\u4e8e\u7684 kosher java \u5e93\u7684\u521b\u5efa\u8005\u3002<\/p>\n<h2> <strong>\u5feb\u901f\u56de\u987e<\/strong> <\/h2>\n<p>\u5f53\u6211\u4eec\u505c\u6b62\u65f6\uff0c\u6211\u4eec\u6709\u4e00\u4e2a\u53ef\u9760\u7684\u57fa\u672c php \u811a\u672c\uff1a<\/p>\n<ul>\n<li> \u8bbe\u7f6e\u4f4d\u7f6e\u53d8\u91cf\uff08\u7eac\u5ea6\/\u7ecf\u5ea6\uff09\uff0c\u4ee5\u53ca\u65f6\u533a\u548c\u6d77\u62d4\u3002<\/li>\n<li> \u8bbe\u7f6e\u65e5\u671f<\/li>\n<li> \u4ece\u8fd9\u4e9b\u53d8\u91cf\u521b\u5efa\u4e00\u4e2a php zmanim \u5bf9\u8c61<\/li>\n<li> \u4f7f\u7528\u5185\u7f6e\u65b9\u6cd5\u8ba1\u7b97\u4ece\u65e5\u51fa\u5230 mincha \u5230 tzeit hakochavim \u7684\u65f6\u95f4<\/li>\n<\/ul>\n<p>\u5b83\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<pre>&lt;?php\nrequire 'vendor\/autoload.php';\nuse phpzmanim\\zmanim;\nuse phpzmanim\\calendar\\complexzmanimcalendar;\nuse phpzmanim\\geo\\geolocation;\n# set variables:\n$locname = \"beit knesset chochmat shlomo, beachwood, oh\";\n$lat = 41.4939407;\n$long = -81.516709;\n$elev = 0;\n$tz = 'america\/new_york';\n$getyear = 2024;\n$getday = 20;\n$getmonth = 12;\n$testzmanim = zmanim::create($getyear, $getmonth, $getday, $locname, $lat, $long, $elev, $tz);\n$sunrise = $testzmanim-&gt;sunrise;\necho \"$sunrise\\n\";\n?&gt;\n<\/pre>\n<p>\u4f46\u65e5\u51fa\u53ea\u662f\u5f00\u59cb\u3002\u4f7f\u7528\u4efb\u4f55\u5185\u7f6e\u8ba1\u7b97\uff08\u5728 github \u81ea\u8ff0\u6587\u4ef6\u9875\u9762\u4e0a\u8fdb\u884c\u4e86\u63cf\u8ff0\uff09\uff0c\u60a8\u53ef\u4ee5\u62c9\u53d6\u591a\u79cd\u65f6\u95f4\u3002\u4f8b\u5982\uff0c\u8981\u8ba9 mincha gedola \u4f7f\u7528\u7279\u5b9a\u7684\u62c9\u6bd4\u610f\u89c1\uff0c\u6211\u53ef\u4ee5\u5305\u62ec\uff1a<\/p>\n<pre>$gedolah = $zmanim-&gt;minchagedola16point1degrees\n<\/pre>\n<p>\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\uff0c\u6211\u8fd8\u4ecb\u7ecd\u4e86\u4f7f\u7528 php zmanim \u7684\u683c\u5f0f\u65b9\u6cd5\u4f7f\u8f93\u51fa\u66f4\u5177\u53ef\u8bfb\u6027\u7684\u65b9\u6cd5\uff1a<\/p>\n<pre>$gedolah = $gedolah-&gt;format('g:i a');\n<\/pre>\n<h2> <strong>\u201c\u52a0\u76d0\u8c03\u5473\u201d\u2014\u2014\u8c03\u6574\u65f6\u95f4<\/strong> <\/h2>\n<p>\u5bf9\u4e8e\u90a3\u4e9b\u4e0d\u82b1\u5f88\u591a\u65f6\u95f4\u5728\u72b9\u592a\u6559\u5802\u7684\u4eba\uff08\u6ca1\u6709\u8d23\u5907\uff0c\u6ca1\u6709\u7f9e\u803b\uff0c\u8fd9\u91cc\u4ecd\u7136\u6b22\u8fce\u4f60\uff09\uff0c\u8fd9\u53ef\u80fd\u5e76\u4e0d\u660e\u663e\uff0c\u4f46\u662f &#8211; \u5c3d\u7ba1\u6709 zman \u7684\u540d\u5b57 &#8211; \u5f88\u5c11\u6709\u7ec4\u7ec7\u4e3a mincha \u7948\u7977\uff08\u4e0b\u5348\u7948\u7977\uff09\u5728 mincha ketana\u3001mincha gedola \u6216 plag hamincha\u3002<\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u5f88\u591a\u5173\u4e8e\u8ba1\u7b97\u65f6\u95f4\u7684\u5de5\u4f5c\u4e0e\u76f4\u63a5\u7684\u201cmincha gedola \u73b0\u5728\u51e0\u70b9\u4e86\uff1f\u201d\u5173\u7cfb\u4e0d\u5927\u3002\u4ee5\u53ca\u201c\u6211\u4eec\u53ef\u4ee5\u5728\u4e00\u5929\u4e2d\u591a\u665a\u5408\u7406\u5b89\u6392mincha\uff0c\u4ee5\u4fbf\u6bcf\u4e2a\u4eba\u4e0b\u73ed\u540e\u90fd\u6709\u65f6\u95f4\u5230\u8fbe\u8fd9\u91cc\uff1b\u4f46\u4e5f\u4e0d\u80fd\u592a\u665a\u4ee5\u81f3\u4e8e\u6ca1\u6709\u4eba\u6765\uff0c\u56e0\u4e3a\u4ed6\u4eec\u4f1a\u9519\u8fc7\u665a\u9910\uff1f\u201d<\/p>\n<p>\u5982\u679c\u8fd9\u592a\u7406\u8bba\u5316\uff0c\u8bf7\u5141\u8bb8\u6211\u5206\u4eab\u6211\u7684\u72b9\u592a\u6559\u5802\u5728\u8bbe\u7f6e\u6bcf\u5468\u65f6\u95f4\u8868\u65f6\u8003\u8651\u7684\u903b\u8f91\u53e0\u53e0\u4e50\uff1a<\/p>\n<ul>\n<li>\u5468\u4e94\u665a\u4e0a\u8721\u70db\u70b9\u71c3\uff1ashkia\uff08\u65e5\u843d\uff09\u51cf\u53bb18\u5206\u949f<\/li>\n<li> \u590f\u5b63\u661f\u671f\u4e94 mincha\uff1aplag hamincha\uff08\u4f7f\u7528\u201cplaghaminchaaterettorah\u201d\uff09\u51cf\u53bb 20 \u5206\u949f<\/li>\n<li> \u51ac\u5b63\u661f\u671f\u4e94 mincha\uff1ashkia\uff08\u65e5\u843d\uff09\u51cf\u53bb 22 \u5206\u949f<\/li>\n<li> \u5468\u516d mincha\uff1ashkia \u51cf 40 \u5206\u949f<\/li>\n<li> \u5468\u516d ma\u2019ariv\uff1ashkia \u52a0 50 \u5206\u949f<\/li>\n<li> \u5468\u516d\u5b89\u606f\u65e5\u7ed3\u675f\uff1ashkia \u52a0 45 \u5206\u949f<\/li>\n<li> weekday mincha\uff1a\u627e\u5230\u672c\u5468\u6700\u65e9\u7684 shkia\uff0c\u7136\u540e\u51cf\u53bb 17 \u5206\u949f<\/li>\n<\/ul>\n<p>\u867d\u7136\u6211\u5728\u65e9\u671f\u535a\u5ba2\u4e2d\u4ecb\u7ecd\u7684\u6240\u6709\u5176\u4ed6\u65f6\u95f4\u4ecd\u7136\u5f88\u91cd\u8981\uff0c\u4f46\u5e0c\u671b\u60a8\u5f00\u59cb\u610f\u8bc6\u5230\u5b83\u4eec\u5e76\u4e0d\u50cf\u4eba\u4eec\u60f3\u8c61\u7684\u90a3\u4e48\u91cd\u8981\u3002<\/p>\n<p>\u90a3\u4e48\u5982\u4f55\u8ba1\u7b97\u65f6\u95f4\uff08\u4f8b\u5982 shkia\/\u65e5\u843d\uff09\uff0c\u7136\u540e\u6dfb\u52a0\u6216\u51cf\u53bb\u5206\u949f\uff1f\u6211\u4eec\u5c06\u4ece\u4e4b\u524d\u7684\u76f8\u540c\u811a\u672c\u5f00\u59cb\uff1a<\/p>\n<pre>&lt;?php\nrequire 'vendor\/autoload.php';\nuse phpzmanim\\zmanim;\nuse phpzmanim\\calendar\\complexzmanimcalendar;\nuse phpzmanim\\geo\\geolocation;\n# set variables:\n$locname = \"beit knesset chochmat shlomo, beachwood, oh\";\n$lat = 41.4939407;\n$long = -81.516709;\n$elev = 0;\n$tz = 'america\/new_york';\n$getyear = 2024;\n$getday = 20;\n$getmonth = 12;\n$testzmanim = zmanim::create($getyear, $getmonth, $getday, $locname, $lat, $long, $elev, $tz);\n<\/pre>\n<p>\u4e3a\u6b64\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0\u4ee3\u7801\u4ee5\u83b7\u53d6\u65e5\u843d\uff1a<\/p>\n<pre>$sunset = $zmanim-&gt;sunset;\n<\/pre>\n<p>\u7136\u540e\u6211\u4eec\u51cf\u53bb 18 \u5206\u949f\u5373\u53ef\u5f97\u5230\u8721\u70db\u70b9\u4eae\u65f6\u95f4\uff1a<\/p>\n<pre>$candles = date('g:i a', strtotime($sunset . \" -18 minutes\"));\n<\/pre>\n<p>\u6ca1\u9519\u3002\u4f60\u53ea\u9700\u4f7f\u7528 php \u81ea\u5df1\u7684\u5b57\u7b26\u4e32\u65f6\u95f4\u51fd\u6570\u5373\u53ef\u3002\u5982\u679c\u6211\u8ba9\u4f60\u4fdd\u6301\u60ac\u5ff5\uff0c\u6211\u5f88\u62b1\u6b49\u3002\u4f46\u8fd9\u771f\u7684\u5c31\u662f\u8fd9\u4e48\u7b80\u5355\u3002<\/p>\n<h2> <strong>\u6258\u62c9\u90e8\u5206\u662f\u4ec0\u4e48\uff1f\u5e0c\u4f2f\u6765\u65e5\u671f\u662f\u54ea\u4e00\u5929\uff1f rosh chodesh \u4ec0\u4e48\u65f6\u5019\u4e0a\u6620\uff1f<\/strong> <\/h2>\n<p><em>\uff08\u2026\u2026\u4ee5\u53ca\u60a8\u7684\u72b9\u592a\u6559\u5802\u5185\u548c\u5468\u56f4\u7ecf\u5e38\u63d0\u51fa\u7684\u5176\u4ed6\u57fa\u672c\u4f46\u4ee4\u4eba\u70e6\u607c\u7684\u95ee\u9898\u3002\uff09<\/em><\/p>\n<p>\u9664\u4e86\u65e5\u671f\u8ba1\u7b97\u4e4b\u5916\uff0ckosherjava \u5e93\uff08\u4ee5\u53ca php zmanim \u5e93\uff09\u8fd8\u5177\u6709\u5feb\u901f\u63d0\u4f9b\u4e0a\u8ff0\u4fe1\u606f\u7684\u65b9\u6cd5\u548c\u51fd\u6570\u3002<\/p>\n<p>\u9996\u5148\u8981\u4e86\u89e3\u7684\u662f\uff0c\u5230\u76ee\u524d\u4e3a\u6b62\u6211\u4eec\u4e00\u76f4\u5728\u4f7f\u7528\u7684 php zmanim \u5bf9\u8c61\u662f\u4e00\u4e2a zmanim \u5bf9\u8c61 \u2013 \u4e00\u4e2a\u5177\u6709\u7279\u5b9a\u65e5\u671f\u7684\u4e00\u7ec4\u7279\u5b9a\u65f6\u95f4\u7684\u5bf9\u8c61\u3002\u5bf9\u4e8e\u6d89\u53ca\u65e5\u671f\u672c\u8eab\u7684\u4e8b\u60c5\uff0c\u6211\u4eec\u5b9e\u4f8b\u5316\u4e00\u4e2a jewishcalendar \u5bf9\u8c61\u3002\u597d\u6d88\u606f\u662f\u5b83\u7684\u521b\u5efa\u8981\u5bb9\u6613\u5f97\u591a\u3002\u60a8\u6240\u9700\u8981\u7684\u53ea\u662f\u5e74\u3001\u6708\u3001\u65e5\u3002<\/p>\n<pre>&lt;?php\nrequire 'vendor\/autoload.php';\nuse phpzmanim\\zmanim;\nuse phpzmanim\\calendar\\complexzmanimcalendar;\nuse phpzmanim\\geo\\geolocation;\n# set variables:\n$getyear = 2024;\n$getday = 21;\n$getmonth = 09;\n$jewishcalendar = zmanim::jewishcalendar(carbon::createfromdate($getyear, $getmonth, $getday));\n<\/pre>\n<p>\u6211\u4eec\u73b0\u5728\u6709\u4e00\u4e2a jewishcalendar \u5bf9\u8c61\u53ef\u4ee5\u4f7f\u7528\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u4e0e\u6211\u4eec\u591a\u6b21\u53d1\u73b0\u7684\u65b9\u6cd5\u7c7b\u4f3c\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff1a\u5047\u8bbe\u6211\u4eec\u9009\u62e9\u7684\u65e5\u671f\u662f\u661f\u671f\u516d\uff0c\u6211\u4eec\u53ef\u4ee5\u5f97\u5230\u6258\u62c9\u90e8\u5206\uff1a<\/p>\n<pre>$format = zmanim::format();\n$parshaeng = json_decode('\"' . $format-&gt;formatparsha($jewishcalendar) . '\"');\n<\/pre>\n<p>\uff08\u6682\u65f6\u5ffd\u7565 $format \u8bbe\u7f6e\u3002\u6211\u4eec\u7a0d\u540e\u4f1a\u6df1\u5165\u7814\u7a76\u5b83\uff09\u3002<\/p>\n<p>\u5982\u679c\u4f60\u8fd0\u884c\u8be5\u4ee3\u7801\uff0c$parshaeng \u4f1a\u7ed9\u4f60\uff1a<\/p>\n<pre>parshas ki savo\n<\/pre>\n<p>\u60a8\u4f1a\u6ce8\u610f\u5230\u6211\u4eec\u4e0d\u9700\u8981\u63d0\u4f9b\u7eac\u5ea6\u3001\u7ecf\u5ea6\u3001\u65f6\u533a\u7b49\u3002\u6211\u5fc5\u987b\u5f3a\u8c03\u7684\u662f\uff0c\u4ec5\u6b64\u529f\u80fd\uff08\u83b7\u53d6\u65e5\u671f\u3001\u6258\u62c9\u90e8\u5206\u7b49\u7684\u80fd\u529b\uff09\u5c31\u4f7f php zmanim \u5e93\u53d8\u5f97\u6709\u7528\u4e00\u5207\u90fd\u9760\u5b83\u81ea\u5df1\uff0c\u5373\u4f7f\u6ca1\u6709\u65f6\u95f4\u8ba1\u7b97\u3002&nbsp;<\/p>\n<h2> <strong>\u6211\u80fd\u5f97\u5230\u5e0c\u4f2f\u6765\u8bed\u7248\u672c\u5417\uff1f<\/strong> <\/h2>\n<p>\u6258\u62c9\u90e8\u5206\uff1f\u5f53\u7136\uff01\u8fd9\u5c31\u662f $format \u884c\u7684\u7528\u6b66\u4e4b\u5730\u3002<\/p>\n<p>\u9996\u5148\u89e3\u91ca\u4e00\u4e0b\u5b83\u662f\u4ec0\u4e48\uff1a\u5b83\u662f\u4e00\u4e2a\u4fee\u6539 zmanim \u548c jewishcalendar \u7b49\u5bf9\u8c61\u7684\u65b9\u6cd5\uff0c\u8bbe\u7f6e\u663e\u793a\u548c\u8f93\u51fa\u9009\u9879\u3002&nbsp; \u5728\u6ca1\u6709\u4efb\u4f55\u5176\u4ed6\u4fe1\u606f\u7684\u60c5\u51b5\u4e0b\u8bbe\u7f6e zmanim::format() \u9ed8\u8ba4\u4e3a\u82f1\u8bed\u3002\u4f46\u968f\u540e\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u9644\u52a0\u884c\u544a\u8bc9\u7cfb\u7edf\u60a8\u9700\u8981\u5e0c\u4f2f\u6765\u8bed\uff1a<\/p>\n<pre>$format-&gt;sethebrewformat(true)\n<\/pre>\n<p>\u73b0\u5728\uff0c\u5982\u679c\u4f60\u8fd0\u884c\u76f8\u540c\u7684 json_decode(\u2018\u201d\u2018 . $format-&gt;formatparsha($jewishcalendar) . \u2018\u201d\u2018) \u884c\uff0c\u4f60\u4f1a\u5f97\u5230\uff1a<\/p>\n<pre>\u05db\u05d9 \u05ea\u05d1\u05d5\u05d0\n<\/pre>\n<p>\u628a\u5b83\u4eec\u653e\u5728\u4e00\u8d77\uff1a<\/p>\n<pre>&lt;?php\nrequire 'vendor\/autoload.php';\nuse phpzmanim\\zmanim;\nuse phpzmanim\\calendar\\complexzmanimcalendar;\nuse phpzmanim\\geo\\geolocation;\n# set variables:\n$getyear = 2024;\n$getday = 21;\n$getmonth = 09;\n$jewishcalendar = zmanim::jewishcalendar(carbon::createfromdate($getyear, $getmonth, $getday));\n$format = zmanim::format();\n$parshaeng = json_decode('\"' . $format-&gt;formatparsha($jewishcalendar) . '\"');\n$format-&gt;sethebrewformat(true);\n$parshaheb = json_decode('\"' . $format-&gt;formatparsha($jewishcalendar) . '\"');\necho \"$parshaheb - $parshaeng\\n\";\n<\/pre>\n<p>\u8fd9\u5c06\u663e\u793a\uff1a\u05db\u0439 \u05ea\u05d1\u05d5\u05d0 \u2013 ki savo<\/p>\n<h2> <strong>\u4eca\u5929\u661f\u671f\u51e0\uff1f<\/strong> <\/h2>\n<p>\u66f4\u5177\u4f53\u5730\u8bf4\uff0c\u4eca\u5929\u662f\u5e0c\u4f2f\u6765\u8bed\u7684\u54ea\u4e00\u5929\uff1f<\/p>\n<p>\u4e0e\u524d\u9762\u7684\u793a\u4f8b\u4e00\u6837\uff0c\u6211\u4eec\u4ece jewishcalendar \u548c\u683c\u5f0f\u5bf9\u8c61\u5f00\u59cb<\/p>\n<pre>$jewishcalendar = zmanim::jewishcalendar(carbon::createfromdate($theyear, $themonth, $theday));\n$format = zmanim::format();\n<\/pre>\n<p>\u7136\u540e\u6211\u4eec\u6dfb\u52a0\u540c\u4e00\u884c\u5c06\u683c\u5f0f\u8bbe\u7f6e\u4e3a\u5e0c\u4f2f\u6765\u8bed\u3002<\/p>\n<pre>$format-&gt;sethebrewformat(true);\n<\/pre>\n<p>\u6700\u540e\uff08\u76f8\u5f53\u7b80\u5355\uff09\u6211\u4eec\u8981\u6c42\u4e00\u4e2a\u76f4\u63a5\u7684\u65e5\u5386\u5bf9\u8c61\u8f93\u51fa\uff1a<\/p>\n<pre>$zmandate = json_decode('\"' . $format-&gt;format($jewishcalendar) . '\"');\n<\/pre>\n<p>\u8fd9\u5c31\u662f\u60a8\u6240\u9700\u8981\u7684\u3002\u7ed3\u679c\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<pre>17 elul, 5784\n<\/pre>\n<p>\u662f\u7684\uff0c\u5373\u4f7f\u6211\u4eec\u6307\u5b9a\u4e86 sethebrewformat\uff0c\u5b83\u8fd8\u662f\u4ee5\u82f1\u8bed\u663e\u793a\u3002<\/p>\n<h2> <strong>\u6211\u80fd\u5f97\u5230\u5b9e\u9645\u7684\u5e0c\u4f2f\u6765\u8bed\u7248\u672c\u5417\uff1f<\/strong> <\/h2>\n<p>\u4e3a\u4e86\u8ba9\u5e0c\u4f2f\u6765\u8bed\u65e5\u671f\u5b8c\u5168\u4ee5\u5e0c\u4f2f\u6765\u8bed\u663e\u793a\uff08\u5305\u62ec\u5355\u8bcd\u548c\u5b57\u6bcd\uff09\uff0c\u6211\u4eec\u8c03\u7528\u4e00\u4e2a\u7a0d\u5fae\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u79f0\u4e3a\u5e0c\u4f2f\u6765\u8bed\u65e5\u671f\u683c\u5f0f\u5668\uff08hebrewdateformatter\uff09\u3002\u5047\u8bbe\uff08\u518d\u6b21\uff09\u60a8\u8bbe\u7f6e\u4e86\u521d\u59cb\u53d8\u91cf\u5e76\u521b\u5efa\u4e86\u4e00\u4e2a jewishcalendar \u5bf9\u8c61\uff0c\u8f93\u51fa\u5e0c\u4f2f\u6765\u8bed\u65e5\u671f\u7684\u4ee3\u7801\u5c06\u662f\uff1a<\/p>\n<pre>$hebformat = hebrewdateformatter::create();\n$hebformat-&gt;sethebrewformat(true);\n$hebdate = json_decode('\"' . $hebformat-&gt;format($jewishcalendar) . '\"');\nprint(\"hebrew date: $hebdate\\n\");\n<\/pre>\n<p>\u8fd9\u4f1a\u7ed9\u4f60\uff1a<\/p>\n<pre>hebrew date: \u05d9\u05f4\u05d7 \u05d0\u05dc\u05d5\u05dc \u05ea\u05e9\u05e4\u05f4\u05d3\n<\/pre>\n<h2> <strong>\u4eca\u5929\u662f\u5417\uff1f<\/strong> <\/h2>\n<p>\u6709\u65f6\u60a8\u9700\u8981\u68c0\u67e5\u7279\u5b9a\u65e5\u671f\u662f\u5426\u662f\u2026\u2026\u55ef\uff0c\u7279\u5b9a\u7684\u4e00\u5929\u3002\u4f8b\u5982 rosh chodesh\uff08\u65b0\u7684\u4e00\u4e2a\u6708\uff09\u6216\u591a\u65e5\u5047\u671f\u7684\u4e00\u90e8\u5206\uff08\u4f8b\u5982\u4f4f\u68da\u8282\uff09\u3002<\/p>\n<p>\u4e8b\u5b9e\u8bc1\u660e\uff0cphp zmanim \u65b9\u6cd5\u4f7f\u8fd9\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u3002\u5047\u8bbe\u60a8\u4ee5\u4e0e\u5176\u4ed6\u793a\u4f8b\u76f8\u540c\u7684\u65b9\u5f0f\u5f00\u59cb\uff0c<\/p>\n<p>\u4e00\u65e6\u4f60\u8bbe\u7f6e\u4e86 jewishcalendar \u5bf9\u8c61\uff0c\u5b83\u5c31\u50cf<br \/>\u4e00\u6837\u7b80\u5355 <\/p>\n<pre>$jewishCalendar-&gt;isRoshHashana();\n$jewishCalendar-&gt;isSuccos();&nbsp;\n<\/pre>\n<p>\u5982\u679c\u65e5\u671f\u4e0e\u5047\u671f\u5339\u914d\uff0c\u5b83\u5c06\u8fd4\u56de\u201ctrue\u201d\uff0c\u60a8\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u60a8\u60f3\u8981\u7684\u4efb\u4f55\u903b\u8f91\u6216\u8fc7\u7a0b\uff0c\u4f8b\u5982\u663e\u793a\uff08\u6216\u4e0d\u663e\u793a\uff09\u65e5\u671f\u3002<\/p>\n<h2> <strong>\u90a3\u4e48\u4e0b\u4e00\u6b65\u662f\u4ec0\u4e48\uff1f<\/strong> <\/h2>\n<p>\u65e0\u8bba\u4f60\u76f8\u4fe1\u4e0e\u5426\uff0c\u8fd8\u6709\u66f4\u591a\u5185\u5bb9\u9700\u8981\u4ecb\u7ecd\u3002\u5728\u63a5\u4e0b\u6765\u7684\u51e0\u5468\u5185\uff0c\u6bcf\u5f53\u6211\u63a5\u89e6\u5230\u5b83\u65f6\uff0c\u6211\u90fd\u4f1a\u4ecb\u7ecd\u5982\u4f55\u5229\u7528\u5185\u7f6e\u5929\u6587\u5b66\u51fd\u6570\u8fdb\u884c\u65f6\u95f4\u8ba1\u7b97\u3002\u4e0d\u7ba1\u4f60\u76f8\u4fe1\u4e0e\u5426\uff0c\u5bf9\u4e8e\u5b89\u606f\u65e5\u548c\u5047\u671f\u4ee5\u53ca\u5176\u4ed6\u7eaa\u5ff5\u6d3b\u52a8\u7684\u5f00\u59cb\u548c\u7ed3\u675f\u7b49\u4e8b\u60c5\u6765\u8bf4\uff0c\u62e5\u6709\u771f\u6b63\u51c6\u786e\u7684\u65f6\u95f4\u786e\u5b9e\u5f88\u91cd\u8981\u3002<\/p>\n<p>\u540c\u65f6\uff0c\u5982\u679c\u60a8\u8fd8\u6709\u5176\u4ed6\u60f3\u8981\u542c\u6211\u4ecb\u7ecd\u7684\u5185\u5bb9\uff1b\u6216\u8005\uff0c\u5982\u679c\u60a8\u6709\u7591\u95ee\u3001\u66f4\u6b63\u6216\u8363\u8a89\uff0c\u8bf7\u968f\u65f6\u5c06\u5176\u7559\u5728\u4e0b\u9762\u7684\u8bc4\u8bba\u4e2d\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300a\u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206\u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591a\u6587\u7ae0\u77e5\u8bc6\uff01<\/p>\n<p> \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb \u5220\u9664<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65f6\u95f4\u6570\u636e\u7cfb\u5217\uff1a\u6545\u4e8b\u7684\u5176\u4f59\u90e8\u5206 \u6536&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-202416","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/202416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=202416"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/202416\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=202416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=202416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=202416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}