{"id":17339,"date":"2015-09-24T05:01:26","date_gmt":"2015-09-23T19:01:26","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=17339"},"modified":"2015-09-23T22:54:49","modified_gmt":"2015-09-23T12:54:49","slug":"htmlphp-timezone-feed-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmlphp-timezone-feed-primer-tutorial\/","title":{"rendered":"HTML\/PHP Timezone Feed Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/daylight_saving_time.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"HTML\/PHP Timezone Feed Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/daylight_saving_time.jpg\" title=\"HTML\/PHP Timezone Feed Primer Tutorial\"  style=\"float:left;\"  \/><\/a><p class=\"wp-caption-text\">HTML\/PHP Timezone Feed Primer Tutorial<\/p><\/div>\n<p>Today we delve into timezone web applications using <a target=_blank title='RSS Feed information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/RSS'>RSS feed<\/a> data, in our case courtesy of <a target=_blank title='Gomashup' href='http:\/\/www.gomashup.com'>Gomashup<\/a> &#8230; thanks.<\/p>\n<p>Maybe you are good with timezones, as you make a lot of International phone calls, and get used to it, but there are a lot of exceptions to the geographical (ie. longitudinal position) logic for several reasons like &#8230;<\/p>\n<ul>\n<li>daylight saving<\/li>\n<li>political decisions (especially around the <a target=_blank title='International Date Line information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/International_Date_Line'>International Date Line<\/a> (180\u00b0E and 180\u00b0W) &#8230; ie. the opposite <a target=_blank title='Longitude information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Longitude'>longitude<\/a> to Greenwich (as of <a target=_blank title='Greenwich Mean Time information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Greenwich_Mean_Time'>Greenwich Mean Time<\/a>), which is at at 0\u00b0E and 0\u00b0W)<\/li>\n<\/ul>\n<p> &#8230; plus we all know that <i>&#8220;when you are having fun&#8221;<\/i> &#8230; well, you know what we mean?!<\/p>\n<p>So all those interruptions to the longitudinal way the time should be, in any given longitudinal place on Earth, needs to get a name, so the international convention gives a <i>Region\/PlaceIdentifier<\/i> type of <i>TimeZoneID<\/i>, and so, even though we offer a finder of your <i>TimeZoneID<\/i> from our web application today, don&#8217;t count on finding it that way, because the places used as <i>TimeZoneID<\/i> PlaceIdentifiers are sometimes quite obscure, or at least to those &#8220;not in the know&#8221; I guess &#8230; but my favourite so far has been <i>&#8220;America\/Indiana\/Tell_City&#8221;<\/i>, as I hadn&#8217;t heard of <a target=_blank title='Tell City, Indiana' href='https:\/\/www.google.com\/search?q=Tell+City&#038;ie=utf-8&#038;oe=utf-8'>Tell City<\/a> before doing this web application &#8230; glad to meet you in <i>code<\/i>, Tell City, Indiana, USA.<\/p>\n<p>Today&#8217;s work has that special treat of combining <i>&#8220;Where&#8221;<\/i> and <i>&#8220;When&#8221;<\/i> in its themes, and think you may find it interesting to try a <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/daylight_saving_time.html\" title='Click picture'>live run<\/a>, and or peruse the code as per &#8230;<\/p>\n<ul>\n<li>HTML\/Javascript source code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/daylight_saving_time.html_GETME\" title='daylight_saving_time.html'>daylight_saving_time.html<\/a> &#8230; supervising &#8230; but needing &#8230;<\/li>\n<li>PHP source code <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/daylight_saving_time.php_GETME\" title='daylight_saving_time.php'>daylight_saving_time.php<\/a> &#8230; because the recent <i>&#8220;Client Pre-emptive Iframe&#8221;<\/i> thoughts don&#8217;t work so well for the cross-domain requirements that Gomashup&#8217;s RSS feed presents to us<\/li>\n<\/ul>\n<p>Thinking back on it, it stands to reason some aspects of <i>&#8220;Where&#8221;<\/i> are intertwined with <i>&#8220;When&#8221;<\/i> by where we live &#8230; <a target=_blank title='?' href='https:\/\/www.google.com\/search?q=springfield+timezone'>doh!<\/a><\/p>\n<p>Anyway, hope you enjoy thinking about time and space &#8230; and all that.  It is a topic of huge interest to those people out there trying to <a target=_blank title='Internationalization information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Internationalization_and_localization'>Internationalize<\/a> their websites.<\/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='#d17339' onclick='var dv=document.getElementById(\"d17339\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=DOM\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d17339' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today we delve into timezone web applications using RSS feed data, in our case courtesy of Gomashup &#8230; thanks. Maybe you are good with timezones, as you make a lot of International phone calls, and get used to it, but &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmlphp-timezone-feed-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":[301,412,576,620,652,719,932,997,1076,1279,1693,1319],"class_list":["post-17339","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-date","tag-feed","tag-html","tag-internationalization","tag-javascript","tag-longitude","tag-php","tag-programming","tag-rss-feed","tag-time","tag-timezone","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/17339"}],"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=17339"}],"version-history":[{"count":6,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/17339\/revisions"}],"predecessor-version":[{"id":17345,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/17339\/revisions\/17345"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=17339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=17339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=17339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}