Editing Talk:2542: Daylight Calendar

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 14: Line 14:
 
:If you use the same epoch for everyone, the date and time would sync up within each timezone once a year, on the anniversary of the epoch.  If everyone just naively starts at their then-current date/time on the switch date, then the switch date is the epoch.  The ideal epoch and switch date for minimizing confusion would be midnight January 1st; this also has precedent (e.g., the Unix epoch is midnight January 1st 1970).  This leaves the question of whether to start each day's time at 00:00:00, or start it at whatever you have to start it at to make noon happen at 12:00:00.  The latter would mean starting the clock at negative times in the summer, positive in winter, and any given latitude's start-of-day times would average out pretty close to 00:06 over the course of a year.  (The average wouldn't be _exactly_ 00:06 with infinite precision over a single year, because you're only averaging a finite number of days.  But the average would asymptotically approach 00:06 over large numbers of years (unless the DST change being not-at-midnight or leap days being not-at-New-Year throws it off in a systematic way; but I am guessing this proposed calendar would replace and obviate DST; leap seconds *are* added at midnight, so they're ok; that leaves leap days as a potential monkey wrench if they aren't moved to align with the epoch), and it would be "close enough" for garden variety everyday purposes even after just one year.) --[[User:Tsadok|Tsadok]]
 
:If you use the same epoch for everyone, the date and time would sync up within each timezone once a year, on the anniversary of the epoch.  If everyone just naively starts at their then-current date/time on the switch date, then the switch date is the epoch.  The ideal epoch and switch date for minimizing confusion would be midnight January 1st; this also has precedent (e.g., the Unix epoch is midnight January 1st 1970).  This leaves the question of whether to start each day's time at 00:00:00, or start it at whatever you have to start it at to make noon happen at 12:00:00.  The latter would mean starting the clock at negative times in the summer, positive in winter, and any given latitude's start-of-day times would average out pretty close to 00:06 over the course of a year.  (The average wouldn't be _exactly_ 00:06 with infinite precision over a single year, because you're only averaging a finite number of days.  But the average would asymptotically approach 00:06 over large numbers of years (unless the DST change being not-at-midnight or leap days being not-at-New-Year throws it off in a systematic way; but I am guessing this proposed calendar would replace and obviate DST; leap seconds *are* added at midnight, so they're ok; that leaves leap days as a potential monkey wrench if they aren't moved to align with the epoch), and it would be "close enough" for garden variety everyday purposes even after just one year.) --[[User:Tsadok|Tsadok]]
 
::Ok, maybe go with this, start it at Unix timestamp 1609459200 (Midnight Jan 1st 2020, GMT), and you'd need to look up sunrise/sunset (0 degrees with respect to horizon) in the location (possibly round to the nearest degree of latitude for the closest conurbation, except when in the ocean) for the year. There may be a formula for that, or there may just be an API you can hit. Things wouldn't quite sync up, because the orbit isn't a unit number of sidereal days long. I'm wondering how bad the drift gets in 400 years. [[User:Thaledison|Erin Anne]] ([[User talk:Thaledison|talk]]) 17:14, 17 November 2021 (UTC)
 
::Ok, maybe go with this, start it at Unix timestamp 1609459200 (Midnight Jan 1st 2020, GMT), and you'd need to look up sunrise/sunset (0 degrees with respect to horizon) in the location (possibly round to the nearest degree of latitude for the closest conurbation, except when in the ocean) for the year. There may be a formula for that, or there may just be an API you can hit. Things wouldn't quite sync up, because the orbit isn't a unit number of sidereal days long. I'm wondering how bad the drift gets in 400 years. [[User:Thaledison|Erin Anne]] ([[User talk:Thaledison|talk]]) 17:14, 17 November 2021 (UTC)
:::Hi, I just wrote some python code that hopefully works to check an API for sunrise and sunset and then calculate from the start of the year: https://gist.github.com/ajlee2006/7c3e474d0e5d2e9b5daa7fd307abef2c [[Special:Contributions/172.70.142.221|172.70.142.221]] 15:15, 8 December 2021 (UTC)
+
:::Hi, I just wrote some python code that hopefully works to check an API for sunrise and sunset and then calculate from the start of the year: https://replit.com/@AJLee/xkcdDaylightCalendar [[Special:Contributions/172.70.142.221|172.70.142.221]] 15:15, 8 December 2021 (UTC)
 
::::I like it, maybe add an explicit summary: "It is currently <datetime>, Day Number <day#>. Today will end at <day-end>, <x> seconds from now" [[User:Thaledison|Erin Anne]] ([[User talk:Thaledison|talk]]) 15:36, 8 December 2021 (UTC)
 
::::I like it, maybe add an explicit summary: "It is currently <datetime>, Day Number <day#>. Today will end at <day-end>, <x> seconds from now" [[User:Thaledison|Erin Anne]] ([[User talk:Thaledison|talk]]) 15:36, 8 December 2021 (UTC)
  

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: