Date calculation library (C, C++ implementations)