Rethinking the C Time API

The C time API is deeply flawed due to legacy cruft and design decisions that are obsolete. The author provides code examples and comparisons to Lua, highlighting the complexities and inefficiencies of the C time API. The author proposes a new time library concept as a proof of concept to address design flaws and legacy issues. The article delves into the intricacies of time in C, including nanosecond representation, struct tm problems, timezone handling, and formatting issues. The author criticizes the current C time library, emphasizing the need for improvement and standardization. The GitHub project for the proposed time library is included as a work in progress.

https://oliverkwebb.github.io/articles/newtime/

To top