Add a datetime class