date_diff | R Documentation |
计算2个日期之间的差异
date_diff(startDate, endDate, unit = "d", hourPerDay = 8, is.hr = TRUE)
startDate |
开始日期 |
endDate |
结束日期 |
unit |
日期差异的单位,默认为d |
hourPerDay |
每天工作小时数 |
is.hr |
是否HR计时 |
返回值
date_diff('2019-6-11','2019-07-22')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.