Description Usage Arguments Details Value Author(s)
This function takes two date-time objects, with or without date separator, and estimates the time difference between them.
1 | difftime_dtc(date1, date2, units, tz, as.real)
|
date1 |
A date, a character string in date-time format. |
date2 |
A second date, a character string in date-time format. |
units |
Units for calculation, defaults to |
tz |
Time-zone, defaults to " |
as.real |
Boolean; should result be returned as a real number? |
The function allows for date-time objects of class character or POSIXct/POSIXlt; it will convert either or both inputs to POSIX-compliant objects as required.
The result is returned as a numerical difference (real number), or as a difftime object.
Either a numeric value corresponding to the time difference between the inputs, or a difftime
object.
Ryan Kyle, ryan.kyle@mail.mcgill.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.