> There are always 24 hours in a day. Is this referring to leap seconds or what do the mean?
Falsehoods programmers believe about time
11–20 of 212 posts
Re: Falsehoods programmers believe about time
#12"Months have either 28, 29, 30, or 31 days." Ok, Im intrigued, are there months that don't? I assume it must be a country specific thing?
Re: Falsehoods programmers believe about time
#13Unimportant sidenote: I don't like the naming of these "falsehoods programmers believe about X" lists. Surely programmers are more likely to be conscious of these not being true than non-programmers.
But of course what happens is the outliers have to deal with these systems that treat them as bad data possessing impossible properties and then the curse and say hey these stupid programmers don't realize that the world is not just like X1 or Y1, but that us rare instances of X2 and Y2 also exist!
And then an expert with sufficient knowledge about all the outliers compiles a list entitled Falsehoods Programmers believe about {X}.
Re: Falsehoods programmers believe about time
#14"Months have either 28, 29, 30, or 31 days." Ok, Im intrigued, are there months that don't? I assume it must be a country specific thing?
Don't know about more recent examples
Re: Falsehoods programmers believe about time
#1524hs before 15:00 is USUALLY 15:00. But in some timezones, it can be (about once a year): 14:00, 16:00 or 14:59:59.
It's currently Monday 11:02 here, but it's likely still Sunday in some parts of the world (or is it already Tuesday somewhere? Not sure which is right). So, right now "today" have no single meaning; it depends on where you are.
Oh, and does your online meeting repeat at 14hs CET every Monday? Then for people in Argentina it will be at 9hs for six months a year, and at 10hs for another six months (due to CET having DST, but not Argentina).
Re: Falsehoods programmers believe about time
#16> There are always 24 hours in a day. Is this referring to leap seconds or what do the mean?
Re: Falsehoods programmers believe about time
#17"Months have either 28, 29, 30, or 31 days." Ok, Im intrigued, are there months that don't? I assume it must be a country specific thing?
Re: Falsehoods programmers believe about time
#18> There are always 24 hours in a day. Is this referring to leap seconds or what do the mean?
Re: Falsehoods programmers believe about time
#19Unimportant sidenote: I don't like the naming of these "falsehoods programmers believe about X" lists. Surely programmers are more likely to be conscious of these not being true than non-programmers.
Average programmer who hasn't done anything datetime-specific: unlikely.
Re: Falsehoods programmers believe about time
#20Even the most inexperienced developers I’ve worked with are well aware that time, and timezones in particular, are really difficult.
I’ve yet to meet anyone that has suggested using anything other than a battle-hardened standard library for time.