{"id":26907,"date":"2016-12-15T03:01:33","date_gmt":"2016-12-14T17:01:33","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=26907"},"modified":"2016-12-14T10:04:11","modified_gmt":"2016-12-14T00:04:11","slug":"timezone-country-places-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/timezone-country-places-primer-tutorial\/","title":{"rendered":"TimeZone Country Places Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/tz_places.php\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"TimeZone Country Places Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/tz_places.jpg\" title=\"TimeZone Country Places Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">TimeZone Country Places Primer Tutorial<\/p><\/div>\n<p>We&#8217;ve elaborated on the PHP TimeZone functionalities today to write another web application where &#8220;when&#8221; meets &#8220;where&#8221; via TimeZones.<\/p>\n<p>Into the mix of the logic here, we need to venture into the world of two letter ISO Country Codes, and we work this with help from <a target=_blank title='http:\/\/php.net\/manual\/en\/datetimezone.getlocation.php' href='http:\/\/php.net\/manual\/en\/datetimezone.getlocation.php'>http:\/\/php.net\/manual\/en\/datetimezone.getlocation.php<\/a> and <a target=_blank title='http:\/\/stackoverflow.com\/questions\/17842003\/php-intl-country-code-2-chars-to-country-name' href='http:\/\/stackoverflow.com\/questions\/17842003\/php-intl-country-code-2-chars-to-country-name'>http:\/\/stackoverflow.com\/questions\/17842003\/php-intl-country-code-2-chars-to-country-name<\/a> and <a target=_blank title=http:\/\/php.net\/manual\/en\/function.timezone-identifiers-list.php href=http:\/\/php.net\/manual\/en\/function.timezone-identifiers-list.php>http:\/\/php.net\/manual\/en\/function.timezone-identifiers-list.php<\/a> and <a target=_blank title=http:\/\/www.timezoneconverter.com\/ href=http:\/\/www.timezoneconverter.com\/>http:\/\/www.timezoneconverter.com\/<\/a> to &#8220;hardcode&#8221; our HTML select &#8220;dropdown&#8221; elements we create in the process, and offer TimeZone information HTML select &#8220;dropdown&#8221; elements as well.<\/p>\n<p>Also in the mix, as is so often the case for us here, when &#8220;where&#8221; is part of the &#8220;equation&#8221;, we use that wonderful <a target=_blank href='https:\/\/developers.google.com\/chart\/interactive\/docs\/index' title='Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.'>Google Charts<\/a> <a target=_blank title='Google Chart Map Chart' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4832'>Map Chart<\/a> functionality, to help us out.<\/p>\n<p>And so we have written our <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/tz_places.php\" title='Click picture'>live run<\/a> of the PHP code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/tz_places.php_GETME\" title=\"tz_places.php\">tz_places.php<\/a> for your perusal.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d26907' onclick='var dv=document.getElementById(\"d26907\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/timezone\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d26907' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve elaborated on the PHP TimeZone functionalities today to write another web application where &#8220;when&#8221; meets &#8220;where&#8221; via TimeZones. Into the mix of the logic here, we need to venture into the world of two letter ISO Country Codes, and &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/timezone-country-places-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[2081,481,518,519,626,745,932,997,1279,1693,1319],"class_list":["post-26907","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-country","tag-geographicals","tag-google-chart","tag-google-charts","tag-ios","tag-map","tag-php","tag-programming","tag-time","tag-timezone","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/26907"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=26907"}],"version-history":[{"count":4,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/26907\/revisions"}],"predecessor-version":[{"id":26915,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/26907\/revisions\/26915"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=26907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=26907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=26907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}