4 ms·
This is dangerous nonsense. Even the example used on the blog post is wrong (in my timezone)... Start = date(2020-02-23) End = date(2020-04-05) Duration = En
by alextingle 1y ago
This is dangerous nonsense.
Even the example used on the blog post is wrong (in my timezone)...
Start = date(2020-02-23)
End = date(2020-04-05)
Duration = End - Start // 42 days
Duration as hours // 1008 hours
2020-03-29 was the start of Summer Time, so only 23 hours long. So the duration in question should be 1007 hours.
Having a span of time using days as the only unit is fine. But there no way to convert that into a different time unit without knowing which specific days we mean.
What happens if the duration concerns something that physically moves? Was the software running on a ship that travelled from Europe to Australia between February and April?
Honestly, gushing about how dumb everyone else is, without mentioning even basic wrinkles like this just screams Dunning Kruger.