Time Differences Time difference in units Function difftime calculates a difference of two date/time objects and returns an object of class "difftime" with an attribute indicating the units. Time format used is always "%Y-%m-%d %H:%M:%S" for time or "%Y-%m-%d" for date
1 2 | embr.timediff(time1, time2, format = "%Y-%m-%d %H:%M:%S",
units = "secs")
|
time1 |
/date-time or date objects. |
time2 |
/date-time or date objects. |
units |
character string. Units in which the results are desired. Can be abbreviated. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.