Talk:2867: DateTime

Explain xkcd: It's 'cause you're dumb.
Revision as of 10:58, 15 December 2023 by Elektrizikekswerk (talk | contribs)
Jump to: navigation, search

Comics like this are why this wiki exists. 172.70.100.172 23:30, 13 December 2023 (UTC)

The time falsehoods gist linked above is a really good explanation about why a programmer might panic about calculating time. Especially the ones about calling "getCurrentTime()" twice in a row doesn't always mean the results are in the order you think they were called, or even different values. t2 might very well be the same or less than t1. It can be maddening. 162.158.197.149 23:40, 13 December 2023 (UTC)
The last item is the most important to me: Users prefer to use the local timezone. This causes so much frustration while browsing the web! PissedOff.gif --162.158.110.68 00:26, 14 December 2023 (UTC)
Worth noting that events can take place over long periods. A sunspot or an illness or a relationship doesn't happen at a single point in time, it takes place over days or weeks or longer. When did it "start"? Who knows? Also I miss calling TI4-1212 here in DC. 172.70.175.27 01:39, 14 December 2023 (UTC)
Out of curiosity, could someone explain the item in that time falsehoods list that says "Months have either 28, 29, 30, or 31 days"? My guess is that it's a reference to their being more calendars in the world than Gregorian? But I'm not sure if there's more than that going on, there.ModelD (talk) 18:18, 14 December 2023 (UTC)
Isn't that true of Gregorian calendars? February has 28 or 29 depending on the year, AJSN have 30 and JMMJAOD have 31.Gavin (talk) 18:33, 14 December 2023 (UTC)
It's saying that "months have either 28, 29, 30, or 31 days" is a falsehood. The first one that comes to mind is the switch from the Julian calendar to the Gregorian calendar: "In North America, for example, the month of September 1752 had only 19 days, as the day count went straight from September 2 to September 14". 172.70.43.108 21:03, 14 December 2023 (UTC)
(Ninjaed, with an actual example! But retrying reply anyway as it had other details.) But how many days had <insert your choice of month(s) during which a given system changed from Julian to Gregorian>? I think possibly, without looking up when each and every transition occured, below 20 days is possible. (As in the nth of one month to the nth of the next is less than 20 days, for the right month and a number of ns. For other ns, you can only actually count from the month before to the month after (two full calendar months), the daycount for that being below the typical bimonthly stretch of 59, 60, 61 or 62 days (under more standard conditions)... 172.70.90.48 21:07, 14 December 2023 (UTC)

Related insanity on Computerphile with Tom Scott: https://m.youtube.com/watch?v=-5wpm-gesOY Fabian42 (talk) 03:54, 14 December 2023 (UTC)

Even with just Special Relativity, the question doesn't really make sense, because the answer will depend on the inertial reference frame. "Impossible to know and a sin to ask" is not a bad way to describe questions about non-invariants. 162.158.154.189 08:09, 14 December 2023 (UTC)

Is it even possible for two observers to agree on the answer and be sure that it's correct for both of them? BunsenH (talk) 16:53, 14 December 2023 (UTC)

I can see Randall's point, so for your average everyday programming I'd say "please use a library function instead of trying to do it yourself, or you'll end up like the guy in the lower frame..." --IByte (talk) 11:02, 14 December 2023 (UTC)

When I googled "DateTime" all I came up with was Python libraries, nothing about relativity or other effects. Is that what Randall's talking about? 172.69.22.125 22:03, 14 December 2023 (UTC)

Ideally, the standard library functions for a language would cover many of the "quirks" without the programmer having to worry about remembering the details. The required inputs for the functions would be sufficient to determine the necessary offsets. But programmers still have to be careful about some of the issues, and not all languages (and their libraries) are sufficient for all situations. When things like relativistic effects have to be taken into account, the usual languages (and their libraries) don't have the needed flexibility/complexity and precision. BunsenH (talk) 00:18, 15 December 2023 (UTC)
I should clarify, I'm not saying the Python library doesn't have functions for those quirks. I'm just asking: what does Randall mean when he says "DateTime" (two capital letters, no space, as per the comic title)? Is he talking about the Python library? Or something else I didn't find yet?172.69.134.163 02:51, 15 December 2023 (UTC)
Doesn't matter. For one the usage of CamelCase in such cases is pretty much standard regardless of language and besides of that the problems he's talking about/implying are pretty much true for every language. Elektrizikekswerk (talk) 10:58, 15 December 2023 (UTC)