{"id":653,"date":"2009-02-12T16:56:45","date_gmt":"2009-02-12T15:56:45","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=653"},"modified":"2009-02-12T16:56:45","modified_gmt":"2009-02-12T15:56:45","slug":"at-the-third-stroke-the-time-will-be-1234567890","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=653","title":{"rendered":"At the third stroke, the time will be 1234567890"},"content":{"rendered":"<p>If I were to ask most of you what the exact date and time\u00a0was right now then you would probably give me an answer based on the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Gregorian_calendar\">Gergorian Calendar<\/a>\u00a0system.\u00a0 For example as I type this sentence, the Gergorian time and date is\u00a0\u00a0&#8220;13:50 and 20 seconds on 12th Feburary\u00a02008.&#8221;<\/p>\n<p>Of course, the Gregorian calendar isn&#8217;t the only calendar system\u00a0that has been used over the course of history.\u00a0 Some alternatives that spring to mind (some of which are still used) include the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Julian_calendar\">Julian Calendar<\/a>, the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Islamic_calendar\">Islamic calendar<\/a>, the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Chinese_calendar\">Chinese Calendar<\/a>\u00a0and the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Roman_calendar\">Roman Calendar<\/a>.\u00a0 Check out <a href=\"http:\/\/www.fourmilab.ch\/documents\/calendar\/\">www.fourmilab.ch\/documents\/calendar\/<\/a>\u00a0for a few more examples.<\/p>\n<p>The calendar type I want to discuss today is called Unix Time*<\/p>\n<p><a href=\"http:\/\/en.wikipedia.org\/wiki\/Unix_time\">Unix time<\/a> was created back in the\u00a01970s to serve the time keeping needs of the first Unix based computers and it has been used by many operating systems ever since.\u00a0 Unix time is very simple &#8211; it consists of nothing more than an integer which represents the number of seconds that have elapsed since 00:00 Universal time on January 1, 1970 in the Gregorian calendar.\u00a0 This may seem like an odd\u00a0date to start a calendar but they had to start somewhere and it coudn&#8217;t be too early since the\u00a0Unix time had to fit into a 32bit integer.\u00a0<\/p>\n<p>So why am I telling you this you may wonder?\u00a0 Well, the Unix time will soon be <strong>1234567890<\/strong> which I find fun since I am a numbers nerd.\u00a0 Since I live in the UK this will correspond to February 13, 2009 at 23:31:30 and I intend to celebrate (well it&#8217;s as good a reason as any)!<\/p>\n<p>For some of you, 123456890 will correspond to Valentines day &#8211; giving you two reasons to celebrate on that particular day.\u00a0 To find out exactly when this momentous date falls for you try the following <a href=\"http:\/\/perl.com\/\">Perl<\/a> command<\/p>\n<p><strong>perl -e &#8216;print scalar localtime(1234567890),&#8221;\\n&#8221;;&#8217;<\/strong><\/p>\n<p>Or if, like me, you prefer <a href=\"http:\/\/www.python.org\/\">Python<\/a><\/p>\n<p><strong>python -c &#8216;import time; print time.ctime(1234567890)&#8217;<\/strong><\/p>\n<p><a href=\"http:\/\/www.wolfram.com\/\">Mathematica<\/a> doesn&#8217;t use Unix time &#8211; it measures time from midnight 1st Jan 1900 so to find out when it will be Unix time 1234567890 you need to do something like<\/p>\n<p><strong>DateString[AbsoluteTime[{1970,1,1,0,0,0}+1234567890]<strong><\/strong><\/strong><\/p>\n<p>Something else that I recently discovered about the number 1234567890 is that both <strong>1234567890 + 1<\/strong> and <strong>1234567890^2 + 1<\/strong> are prime (originally from <a href=\"http:\/\/primes.utm.edu\/curios\/page.php\/1234567890.html\">Prime Curios <\/a>but verified by me using Mathematica).<\/p>\n<p>Finally, if 1234567890 is not interesting enough for you then maybe you are more impressed with the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Palindromic_number\">palindromic<\/a> time of 1234554321 which occurs a few hours earlier &#8211; Fri 13 Feb 2009 19:45:21 UTC to be precise.<\/p>\n<p>*As I type this I consider the possibility that there is a formal definition of the term &#8216;calendar&#8217; and that Unix Time doesn&#8217;t fulfill it for some reason.\u00a0 Feel free to correct me in the comments if this is the case.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I were to ask most of you what the exact date and time\u00a0was right now then you would probably give me an answer based on the Gergorian Calendar\u00a0system.\u00a0 For example as I type this sentence, the Gergorian time and date is\u00a0\u00a0&#8220;13:50 and 20 seconds on 12th Feburary\u00a02008.&#8221; Of course, the Gregorian calendar isn&#8217;t the [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,10],"tags":[],"class_list":["post-653","post","type-post","status-publish","format-standard","hentry","category-general-math","category-retro-computers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-ax","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=653"}],"version-history":[{"count":6,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/653\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/653\/revisions\/659"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}