{"id":5475,"date":"2020-09-17T07:51:00","date_gmt":"2020-09-17T07:51:00","guid":{"rendered":"https:\/\/azoora.com\/blog\/?p=5475"},"modified":"2020-09-15T08:01:46","modified_gmt":"2020-09-15T08:01:46","slug":"spacetime-handling-timezone-in-javascript","status":"publish","type":"post","link":"https:\/\/azoora.com\/blog\/code\/spacetime-handling-timezone-in-javascript\/","title":{"rendered":"Spacetime: Handling Timezone In JavaScript"},"content":{"rendered":"\n<h2>Description<\/h2>\n\n\n\n<p>Spacetime is a pure JavaScript library used to&nbsp;manipulate, traverse, compare, and format dates and times across planet Earth.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-attachment-id=\"5476\" data-permalink=\"https:\/\/azoora.com\/blog\/code\/spacetime-handling-timezone-in-javascript\/attachment\/spacetime\/#main\" data-orig-file=\"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime.png\" data-orig-size=\"537,398\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"spacetime\" data-image-description=\"\" data-medium-file=\"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime-300x222.png\" data-large-file=\"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime.png\" loading=\"lazy\" width=\"537\" height=\"398\" src=\"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime.png\" alt=\"\" class=\"wp-image-5476\" srcset=\"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime.png 537w, https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/spacetime-300x222.png 300w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/figure>\n\n\n\n<h2>Key features<\/h2>\n\n\n\n<ul><li>Get\/set dates and times in remote time zones<\/li><li>Global support for Daylight Savings Time, leap years + seconds, and hemispheres<\/li><li>Orient by quarter, season, month, and week<\/li><li>Remote date comparison<\/li><li>Written in ES2015 JS, published as ES5, tested for Node and the browser<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><strong>Demo<\/strong>: <a href=\"https:\/\/beta.observablehq.com\/@spencermountain\/spacetime\">Link<\/a><\/p><p><strong>Download<\/strong>: <a href=\"https:\/\/github.com\/spencermountain\/spacetime\/archive\/master.zip\">Link<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Description Spacetime is a pure JavaScript library used to&nbsp;manipulate, traverse, compare, and format dates and times across planet Earth. Key features Get\/set dates and times in remote time zones Global support for Daylight Savings Time, leap years + seconds, and hemispheres Orient by quarter, season, month, and week Remote date comparison Written in ES2015 JS, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":5477,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[4,145,12],"tags":[25,146,87],"jetpack_featured_media_url":"https:\/\/azoora.com\/blog\/wp-content\/uploads\/2020\/09\/Spacetime.gif","jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p7FQPL-1qj","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/5475"}],"collection":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/comments?post=5475"}],"version-history":[{"count":1,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/5475\/revisions"}],"predecessor-version":[{"id":5478,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/posts\/5475\/revisions\/5478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media\/5477"}],"wp:attachment":[{"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/media?parent=5475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/categories?post=5475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azoora.com\/blog\/wp-json\/wp\/v2\/tags?post=5475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}