Add time_precision option to datetime_to_epoch.

When `time_precision` "m" or "u" was passed to `write_points`, `_datetime_to_epoch` needs to translate timestamps into milliseconds or microseconds accordingly.