【hive】时间函数01
月份第一天,最后一天,一月多少天select trunc('2021-12-13','MM');select last_day('2021-12-13');select (datediff(last_day('2021-12-13'), trunc('2021-12-13','MM')) + 1) days;返回值:2021-12-012021-12-3131当天:select current_date()select '${zdt.addDay(-1).format("yyyy