{"id":7223,"date":"2022-12-20T19:35:53","date_gmt":"2022-12-20T22:35:53","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/timezone-man3\/"},"modified":"2022-12-20T19:35:53","modified_gmt":"2022-12-20T22:35:53","slug":"timezone-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/timezone-man3\/","title":{"rendered":"Time::Zone (man3)"},"content":{"rendered":"<h1 align=\"center\">Time::Zone<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Time::Zone \u2212\u2212 miscellaneous timezone manipulations routines<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use Time::Zone; <br \/> print tz2zone(); <br \/> print tz2zone($ENV{&#8216;TZ&#8217;}); <br \/> print tz2zone($ENV{&#8216;TZ&#8217;}, time()); <br \/> print tz2zone($ENV{&#8216;TZ&#8217;}, undef, $isdst); <br \/> $offset = tz_local_offset(); <br \/> $offset = tz_offset($TZ);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This is a collection of miscellaneous timezone manipulation routines.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;tz2zone()&#8221; parses the <small>TZ<\/small> environment variable and returns a timezone string suitable for inclusion in <b>date<\/b>(1)\u2212like output. It opionally takes a timezone string, a time, and a is-dst flag.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;tz_local_offset()&#8221; determins the offset from <small>GMT<\/small> time in seconds. It only does the calculation once.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;tz_offset()&#8221; determines the offset from <small>GMT<\/small> in seconds of a specified timezone.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;tz_name()&#8221; determines the name of the timezone based on its offset<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Graham Barr <gbarr@pobox.com> David Muir Sharnoff <muir@idiom.com> Paul Foley <paul@ascent.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Time::Zone \u2212\u2212 miscellaneous timezone manipulations routines <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,2310],"class_list":["post-7223","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-timezone"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7223"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7223\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}