Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
laut
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
laut
12y ago
I don't think you understood the described problem with storing the time in UTC. In the example in the article it is assumed and your software gets the timezone update. But because the meeting is stored in UTC, it displays the wrong ti
62.
▲
by
laut
12y ago
In the example in the blog post the meeting takes place in Chile, so Berlin time is irrelevant. But let's say you are arranging a conference call between someone in Chile and someone in Berlin. When you arrange the meeting you have to
63.
▲
by
laut
12y ago
Good question! It is optional to store the UTC offset. The reason to store the UTC offset is to avoid ambiguity there might be when the timezone rules do not change. If the timezone rules don't change and you happen to be storing a dat
64.
▲
by
laut
12y ago
Let's say the meeting is supposed to take place at 15:00 "wall time" in Sydney on March 30th. Someone changes the DST rules. The meeting still takes place at the specified time. Remember we specify the time at Australia. So f
65.
▲
by
laut
12y ago
Author here. When the timezone rules change, the software updates its timezone database. This is how it should be. You don't have to change the software, the software should be able to handle the changes to the timezone database. The u
66.
▲
by
laut
12y ago
Yes. But in this case the timeline is something like this: 1) You arrange a meeting 2) Then, after you have arranged the meeting, politicians/bureaucrats decide to change the time zone rules 3) Your meeting takes place At 1) the rules
67.
▲
by
laut
12y ago
Author here. Yes, the error was to save any other time than the local time where the meeting is supposed to take place. The point of the post was to demonstrate that when storing future events that is supposed to happen in a certain timezon
68.
▲
by
laut
12y ago
This post describes examples of ambiguity and non-existing times: http://www.creativedeletion.com/2015/01/28/falsehoods-progra... Note non-existing times mostly happen when you go from winter time to summer t
69.
▲
by
laut
12y ago
The problem is that the meeting time is defined in terms of the "wall time" in Chile. So if you store the time in terms of UTC, then you are going to have problems when the relation between UTC and the Santiago/Chile timezone
70.
▲
How to save datetimes for future events
(creativedeletion.com)
89 points
by
laut
12y ago
|
95 comments
71.
▲
Falsehoods programmers believe about time and time zones
(creativedeletion.com)
5 points
by
laut
12y ago
|
0 comments
72.
▲
by
laut
14y ago
Go is from 2009. Ruby is from 1995. Although it took about 10 years for Ruby to really start to be popular in the English speaking world.
73.
▲
by
laut
14y ago
A Danish mother did that in New York: http://www.nytimes.com/1997/05/14/nyregion/toddler-left-outs...
74.
▲
by
laut
14y ago
Healthcare spending in the US is something like 15% of GDP. It's a trillion dollar industry. Think health insurance, pharmaceuticals, nursing, dentistry etc.
75.
▲
by
laut
14y ago
here's Louis CK: http://www.youtube.com/watch?v=TG4f9zR5yzY
76.
▲
by
laut
14y ago
You can buy bitcoins with bank transfer from the UK (or other countries) here: https://bitcoinnordic.com/
77.
▲
by
laut
14y ago
Click 2013. In the red municipalities less than 50% are employed. http://www.dr.dk/Nyheder/Indland/2013/01/26/103754.htm
78.
▲
by
laut
14y ago
It's good because it's less risky to hire people. In Spain it's hard to fire people and the youth unemployment rate there was more than 50% last time I checked. edit: And the ethical answer is because employers and employees should have the
79.
▲
by
laut
14y ago
Why are you so sure that is the reason?
80.
▲
by
laut
14y ago
The nordic countries have been capitalist for a long time. In 1960 the taxes in Denmark were lower than in the US. In the 1960s and 1970s the welfare state really started expanding. The system as it is now in Denmark is unsustainable. Most
81.
▲
by
laut
14y ago
In Monaco there's no income tax. And it's not the only country in Europe without income tax. In Estonia the marginal tax rate is 21%. In the US it's 35%+ ? > From what I know, it's hard to fire underperformers in most of Western Europe.
82.
▲
by
laut
14y ago
You can compare Europe to the US, but you are comparing a diverse geographical area to a nation state. Apples to Oranges. It's like comparing the US to Asia.
83.
▲
by
laut
14y ago
No. For instance Swiss and Norwegians are Europeans, but not part of the EU.
84.
▲
by
laut
14y ago
It's a movie filled with lies and shouldn't be taken as a serious documentary. For instance when the guy sets fire to gas coming out of his tap it is assumed that it is caused by fracking, but the movie doesn't tell you that these things ha
85.
▲
by
laut
14y ago
> It's not like it's arbitrarily taking companies by force. They took over the majority of the shares by force. Buying something is when you voluntarily agree on a transaction. When the government cuts off the communication to the head
86.
▲
by
laut
15y ago
You write "civic-minded" and "non-cynical", I read "nationalist" and "naive" ;) But perhaps I am cynical. Are the Danes you know students? Among the minority in Denmark that works full time in the private sector, there is discontent with ho
87.
▲
by
laut
15y ago
It is very common for people to complain in Denmark. I left the country, but if you want I can still complain about it ;)
88.
▲
by
laut
15y ago
The dashboard is not the most important thing in the entire automotive industry. Car companies are focusing on design. They are spending billions on it. Regarding the Ferrari 458, it can show the current speed as a number while showing the
89.
▲
by
laut
15y ago
"Other timezones can be written as an offset from UTC. Australian Eastern Standard Time is UTC+1000. e.g. 10:00 UTC is 20:00 EST on the same day." Every programmer should know about DST. Offsets are not always enough. When it's winter north
90.
▲
by
laut
15y ago
While the US has brought the world many great technological innovations, "Europe" on the whole doesn't suck at it. And Europe is not France, it's a continent with many different countries. If we are talking about the internet, these things
More ›