datetime_diff | R Documentation |
计算出两个datetime类型数据的时间差
datetime_diff(x, y, unit = "h", digit = 1)
x |
第一个数据 |
y |
第一个数据 |
unit |
时间差单位,默认为h表示小时 |
digit |
保留小数位数 |
返回值
datetime_diff(as.datetime('2019-08-14 08:14:00'),as.datetime('2019-08-15 08:14:00'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.