Collection of C++ code for creating date structures and associated manipulation functions