Convert a datetime into a time of day expressed in hours, minutes or seconds
from midnight in local time for a time zone. This conversion is useful when
time-series data for different days needs to be compared or plotted based on
the local time-of-day.
Usage
as_tod(x, unit.out = "hours", tz = NULL)
Value
A numeric vector of the same length as x. If
unit.out = "tod_time" an object of class "tod_time" which
a numeric vector as with unit.out = "hours" but with the class
attribute set to "tod_time", which dispatches to special