On leap years, if you use localtime, tm_mday from the returned struct will be 1 too high until March 1st. Here's my code: [time.tar.gz](https://github.com/CE-Programming/toolchain/files/13878418/time.tar.gz)