{"id":1840,"date":"2019-01-24T08:44:02","date_gmt":"2019-01-24T07:44:02","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=1840"},"modified":"2019-01-24T08:44:04","modified_gmt":"2019-01-24T07:44:04","slug":"calculate-season-for-given-date-astrological","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/calculate-season-for-given-date-astrological\/","title":{"rendered":"Calculate Season For Given Date (astrological)"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    \/**\n     *  Noordelijk halfrond\n     *  Lente: 21 maart t\/m 20 juni\n     *  Zomer: 21 juni t\/m 20 september\n     *  Herfst: 21 september t\/m 20 december\n     *  Winter: 21 december t\/m 20 maart\n     * @return Seasons\n     *\/\n    getCurrentSeasonForDate(datetime : Date) {\n        const month = datetime.getMonth() + 1;\n        const date = datetime.getDate();\n        const monthDate = month + (date \/ 100);\n        if (monthDate >= 3.21 &amp;&amp; month &lt; 6.21) {\n            return Seasons.spring;\n        } else if (monthDate >= 6.21 &amp;&amp; month &lt; 9.21) {\n            return Seasons.summer;\n        } else if (monthDate >= 9.21 &amp;&amp; month &lt; 12.21) {\n            return Seasons.autumn;\n        } else {\n            return Seasons.winter;\n        }\n    }<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1840","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=1840"}],"version-history":[{"count":1,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1840\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/1840\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}