A string indicating the unit which the data is converted from.
to.unit
A string indicating the unit which the data is converted to.
Details
The supported units are "ns"(nanosecond), "ms"(millisecond), "sec", "min", "hour", "day", "month", and "year".
Make sure from.unit and to.unit are not NULL before it is passed to this function.