support serializing Time/Date values to Integer automatically
rename for clarity