old date function based on Unix module replaced by one based on libcalendar