Remove unneeded datetime code
Add support for datetime arrays
Infer datetime units at compile time