content: daylight-savings-time
This data as json
author | category | content | published_date | slug | summary | title | url |
---|---|---|---|---|---|---|---|
ryan | technology | [Dr Drang has posted on Daylight Savings in the past](http://www.leancrew.com/all-this/2013/03/why-i-like-dst/), but in a recent [post](http://leancrew.com/all-this/2018/03/one-table-following- another/) he critiqued (rightly so) the data presentation by a journalist at the Washington Post on Daylight Savings, and that got me thinking. In the post he generated a chart showing both the total number of daylight hours and the sunrise / sunset times in Chicago. However, initially he didn’t post the code on how he generated it. The next day, in a follow up [post](http://leancrew.com/all-this/2018/03/the-sunrise-plot/), he did and that **really** got my thinking. I wonder what the chart would look like for cities up and down the west coast (say from San Diego, CA to Seattle WA)? Drang’s post had all of the code necessary to generate the graph, but for the data munging, he indicated: > > If I were going to do this sort of thing on a regular basis, I’d write a > script to handle this editing, but for a one-off I just did it “by hand.” Doing it by hand wasn’t going to work for me if I was going to do several cities and so I needed to write a parser for the source of the data ([The US Naval Observatory](http://aa.usno.navy.mil)). The entire script is on my GitHub [sunrise _sunset_](https://github.com/ryancheley/sunrise_sunset) repo. I won’t go into the nitty gritty details, but I will call out a couple of things that I discovered during the development process. Writing a parser is hard. Like _really_ hard. Each time I thought I had it, I didn’t. I was finally able to get the parser to work o cities with `01`, `29`,`30`, or `31` in their longitude / latitude combinations. I generated the same graph as Dr. Drang for the following cities: * Phoenix, AZ * Eugene, OR * Portland * Salem, OR * Seaside, OR * Eureka, CA * Indio, CA * Long Beach, CA * Monterey, CA * San Diego, CA * San Francisco, CA * San Luis Obispo, CA * Ventura, CA * Ferndale, WA * Olympia, WA * Seattle, WA Why did I pick a city in Arizona? They don’t do Daylight Savings and I wanted to have a comparison of what it’s like for them! The charts in latitude order (from south to north) are below: San Diego  Phoenix  Indio  Long Beach  Ventura  San Luis Obispo  Monterey  San Francisco  Eureka  Eugene  Salem  Portland  Seaside  Olympia  Seattle  Ferndale  While these images do show the different impact of Daylight Savings, I think the images are more compelling when shown as a GIF:  We see just how different the impacts of DST are on each city depending on their latitude. One of [Dr. Drang’s main points in support of DST](http://www.leancrew.com/all-this/2013/03/why-i-like-dst/) is: > > If, by the way, you think the solution is to stay on DST throughout the > year, I can only tell you that we tried that back in the 70s and it didn’t > turn out well. Sunrise here in Chicago was after 8:00 am, which put school > children out on the street at bus stops before dawn in the dead of winter. > It was the same on the East Coast. Nobody liked that. I think that comment says more about our school system and less about the need for DST. For this whole argument I’m way more on the side of CGP Grey who does a [great job of explaining what Day Lights Time is](https://www.youtube.com/watch?v=84aWtseb2-4). I think we may want to start looking at a Universal Planetary time (say UTC) and base all activities on that **regardless** of where you are in the world. The only reason 5am _seems_ early (to some people) is because we’ve collectively decided that 5am (depending on the time of the year) is either **WAY** before sunrise or just a bit before sunrise, but really it’s just a number. If we used UTC in California (where I’m at) 5am would we 12pm. Normally 12pm would be lunch time, but that’s only a convention that we have constructed. It could just as easily be the crack of dawn as it could be lunch time. Do I think a conversion like this will ever happen? No. I just really hope that at some point in the distant future when aliens finally come and visit us, we aren’t late (or them early) because we have such a wacky time system here. | 2018-03-26 | daylight-savings-time | [Dr Drang has posted on Daylight Savings in the past](http://www.leancrew.com/all-this/2013/03/why-i-like-dst/), but in a recent [post](http://leancrew.com/all-this/2018/03/one-table-following- another/) he critiqued (rightly so) the data presentation by a journalist at the Washington Post on Daylight Savings, and that got me thinking. In the post he generated a chart showing both the total number of … | Daylight Savings Time | https://www.ryancheley.com/2018/03/26/daylight-savings-time/ |