r/ProgrammerHumor • • Feb 09 '18

Timezone Support

Post image
31.3k Upvotes

532 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Feb 09 '18

[deleted]

0

u/[deleted] Feb 09 '18

[deleted]

421

u/Overlordduck2 Feb 09 '18

Agreed. Best date.

82

u/[deleted] Feb 10 '18

You might even say it's epoch.

→ More replies (1)

105

u/[deleted] Feb 09 '18

let's make the counter 64 bits this time

48

u/myrrlyn Feb 09 '18

i128 or bust

61

u/Lurker_Since_Forever Feb 09 '18

Signed 64 is already way way longer than the age of the universe up to this point. Like, in the trillions of years. More than we would ever need, but for real this time. None of that 640k of RAM bullshit.

64

u/heeen Feb 09 '18

That's why you make it microseconds or nanoseconds resolution

19

u/thefloppyfish1 Feb 09 '18

Dont give them any ideas

19

u/heeen Feb 09 '18

Ntp already uses 64 bits for 2-32 second resolution. ext4, btrfs, XFS or ZFS have nanosecond resolution

→ More replies (3)
→ More replies (4)
→ More replies (2)
→ More replies (8)
→ More replies (1)

51

u/mailto_devnull Feb 09 '18

Don't worry, we'll blow ourselves up long before 2038

→ More replies (1)
→ More replies (3)

386

u/BlackDeath3 Feb 09 '18

January 1, 1970 01:00 GMT it is!

0

u/[deleted] Feb 09 '18

[deleted]

57

u/BlackDeath3 Feb 09 '18

But if we do that, everybody gets to be an hour younger. What's the big deal?

30

u/004413 Feb 10 '18

definitely how it works

48

u/Bainos Feb 10 '18

Breaking news: the computer science community unanimously decided that everyone is now an hour younger, and that every events that occurred between 1970-01-01T00:00 and 1970-01-01T01:00 will be rescheduled over the following hours.

"It's really the only way, otherwise the task will be pretty much impossible" said one of the decision makers when our journalists asked him what made this decision sound. He then added "If you don't agree with this, I swear we will reprogram your smartphone to ring every 30 minutes between sunset and sunrise."

→ More replies (1)
→ More replies (2)
→ More replies (20)

21

u/Vitztlampaehecatl Feb 09 '18

Nah, make it start on Jan 19th 2038

→ More replies (7)

35

u/FUCKING_HATE_REDDIT Feb 09 '18

And no fucking leap seconds.

39

u/[deleted] Feb 09 '18

No, in the future they have quantum leap seconds, which is like a leap second, except you can't know what time it is without changing it.

→ More replies (3)
→ More replies (1)

15

u/shagieIsMe Feb 09 '18

“Take the Traders’ method of timekeeping. The frame corrections were incredibly complex—and down at the very bottom of it was a little program that ran a counter. Second by second, the Qeng Ho counted from the instant that a human had first set foot on Old Earth’s moon. But if you looked at it still more closely…the starting instant was actually about fifteen million seconds later, the 0-second of one of Humankind’s first computer operating systems.”

From A Deepness in the Sky

http://newspaperslibrary.org/articles/eng/A_Deepness_in_the_Sky

→ More replies (1)
→ More replies (50)

12

u/Paul-ish Feb 09 '18

Are there libraries for this yet?

25

u/_greyknight_ Feb 09 '18

Time to put in the work and reap that sweet, sweet github fame in about 20 years.

→ More replies (3)
→ More replies (2)
→ More replies (7)