optimized classes Time and Date