this post was submitted on 03 Apr 2024
1100 points (96.3% liked)

Programmer Humor

25531 readers
1187 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] LodeMike@lemmy.today 2 points 1 year ago (2 children)

This is why we have pre-built libraries and Unix time.

[โ€“] fubarx@lemmy.ml 2 points 1 year ago

Embedded portable device with a teeny ARM processor. Sadly, no room for linux anything or even an RTC. Every time it connected to a phone, the phone would set its clock so the timestamps were somewhat close to being accurate.

However, if you swapped out the AAA battery and DIDN'T connect it to the phone at least once, all your subsequent readings would go back to zero epoch and would be forgotten ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

Good times.

[โ€“] fishbone@lemmy.world 0 points 1 year ago* (last edited 1 year ago)

too bad unix time only has 14 years of life left in it.

Edit: this only applies to 32 bit Unix time. The 64 bit lifespan is a little longer, at 584 billion years. Whoops lol.