timestep.hours | R Documentation |
Finds time interval between two datetime values in hours
timestep.hours(datetime1, datetime2)
datetime1 |
Required. First datetime |
datetime2 |
Required. Second datetime |
Returns a numeric value for the difference in hours
Kevin Shook Alex Cebulski
{
dt1 <- as.POSIXct("2000-01-01 12:00", format = "%Y-%m-%d %H:%M")
dt2 <- as.POSIXct("2000-01-01 15:00", format = "%Y-%m-%d %H:%M")
timestep.hours(dt1, dt2)}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.