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.
a datetime object accepted by lubridate functions
character string, One of "tod_time", "hours", "minutes", or "seconds".
character string indicating time zone to be used in output.
A numeric vector of the same length as
unit.out = "tod_time" an object of class
the same as for
unit.out = "hours" but with the class attribute
set, which dispatches to special
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.