Convert date to time-of-day in hours, minutes or seconds
as_tod(x, unit.out = "hours", tz = NULL)
a datetime object accepted by lubridate functions
charater string, One of "datetime", "hour", "minute", or "second".
character string indicating time zone to be used in output.