Timey is a simple time library written in C. It comes with a timestamp and datetime struct, and some functions for obtaining times and dates, as well as obtaining future times and dates.
Note
Timey is not thread-safe as of right now.
git clone https://github.com/loganjellis/Timey.git
cd Timey
cmake -S . -B build
cmake --build build
(only include this line if you want to install Timey) cmake --install build --prefix ./install
Note
Note that ./install is a placeholder install location for the library. Omitting the install location results in the library being installed in the operating system's default path.
list(APPEND CMAKE_PREFIX_PATH "/path/to/timey/install")
find_package(Timey REQUIRED)
target_link_libraries(app PRIVATE Timey::timey)
add_subdirectory(Timey)
target_link_libraries(app PRIVATE Timey::timey)
Please refer to the Timey docs here