A countdown to the end of 32-bit signed Unix time (2038-01-19 03:14:08 UTC), among others
A countdown to the end of 32-bit signed Unix time (2038-01-19 03:14:08 UTC), among others
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.
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.
Log in to leave a comment
Added favicon
Log in to leave a comment
Improved the CSS again
Log in to leave a comment
Improved the CSS
Log in to leave a comment
Fixed mixed mode, it works now!
Log in to leave a comment
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—
Log in to leave a comment
Got the countdown working partially. There are spacing issues and the Unix counter isn’t ticking up yet
Log in to leave a comment
Basic UI done, functionality incomplete
Log in to leave a comment
Made a basic project template, time to work on it
Log in to leave a comment