|
ASAP
1.0.0
A C++ header-only library for creating, displaying, iterating and manipulating dates
|
ASAP is a small, header-only date-time library for C++11 and beyond. It is heavily inspired by my great time using momentjs to parse and display dates. ASAP has a lot of syntatic sugar to make your code look pretty both on the inside and outside :)
All ASAP examples available online at repl.it. (main() starts at line 551)
asap::day(1) specifies a day)asap::period(asap::now(), asap::tomorrow()))auto then = asap::now() + asap::week(1))auto then = asap::now() + 1_year) for seconds, minutes, hours, days, weeks, months and yearsasap::days(10) prints "1 week, 3 days")You can either:
include/asap folder in your project and use itinclude/asap folder and include "asap.h" in your codetarget_link_librariesfind_package if you installed ASAP using make install or any other methodasap.h file bundled with all the classes.ASAP is MIT licensed.
1.8.14