End of 32-bit Unix Time banner

End of 32-bit Unix Time

11 devlogs
6h 47m 23s

A countdown to the end of 32-bit signed Unix time (2038-01-19 03:14:08 UTC), among others

Demo Repository

Loading README...

NOT_A_ROBOT

Shipped this project!

Hours: 6.79
Cookies: 🍪 203
Multiplier: 29.91 cookies/hr

It’s a basic countdown project until the end of 32-bit signed Unix time. Handling time and durations is a lot more difficult than I thought, especially because of leap years and irregular month lengths.

NOT_A_ROBOT

Looks like how I handle the mixed mode was quite naïve and not quite correct, because it doesn’t handle leap years correctly. I’m planning to use date-fns (https://date-fns.org/v4.1.0/docs/differenceInYears) instead to correct for this issue, however, integrating Closure Compiler with NPM packages seem a little more complicated than expected, so I’m trying to modify my build script to account for this.

Attachment
0
NOT_A_ROBOT

Worked on JS micro-optimizations, now it’s at 2660 bytes minified from 2713 (~2% improvement). I guess I’m too much of a perfectionist—

Attachment
0
NOT_A_ROBOT

Got the countdown working partially. There are spacing issues and the Unix counter isn’t ticking up yet

Attachment
0