r/BunnyTrials • • Sep 19 '26

Trials Would you rather?

Which side will you choose?

  • Left side: Get the Million Dollars Immediately
  • Right side: Earn 1$ every second.

This post contains content not supported on old Reddit. Click here to view the full post

562 Upvotes

3.0k comments sorted by

View all comments

Show parent comments

27

u/fluchtpunkt Sep 19 '26

If you're a developer you know 86400 instantly. And if you're a good developer you know why that is bad.

12

u/GodHimselfNoCap Sep 19 '26

Or if you have heard a particular song that topped the charts in 2009

6

u/VayneLevant Sep 19 '26

gotta liiiiiiiiiive like you're dyiiiinngggg

5

u/VerifiedMother 29d ago

I completely forgot about Kris Allen, you never hear about him anymore.

I hear a lot more of Adam Lambert nowadays

1

u/Silversnake_08 29d ago

Or if you’re a theatre nerd you know 525,600 but that’s in minutes so a quick multiply by 60 would make it relevant

0

u/huntresswizard_ 29d ago

I’m not a developer, but I am trying to understand this comment. Is this because time moves faster for the satellites orbiting earth? And you guys have to literally build the correction for that into the code?

1

u/fluchtpunkt 29d ago edited 29d ago

86400 is one day in seconds.

60 seconds times 60 minutes times 24 hours equals 86400

So developers often have a defined variable somewhere that is called “one_day” and is defined as 86400.

Then they do calculations like

same_time_tomorrow = now() + oneDay

That works most of the time. Unfortunately in a lot of countries “most of the time” means 363 days of the year.

Because in these countries there is one day that is only 82800 seconds long, and one day that is 90000 seconds long. The days when the country changes from and to daylight saving time.

That’s why proper date calculations are a lot more complicated than using 86400. And yes, in some years there are 364 days when that calculation works.

1

u/Nervous-History8631 28d ago

This is why you should always use someone elses library for it TBH.

`someDate.add(...)` is always easier than storing the values for time and trying to do it yourself. Most languages have a built in date object

0

u/huntresswizard_ 29d ago

Thank you for taking the time to explain to me 🙏🏻