presto date_diff函数
作者:互联网
date_diff(unit, timestamp1, timestamp2) → bigint
Returns timestamp2 - timestamp1 expressed in terms of unit.
> select date_diff('day',from_unixtime(1610180252),from_unixtime(1611217052));
_col0
-------
12
标签:presto,unixtime,timestamp2,date,diff,timestamp1,unit 来源: https://blog.csdn.net/u010711495/article/details/112276794