Hive date function

Time:2022-1-3

1. Hive gets the current date and time:

–1.1) obtain the current date:

select current_date();

–1.2) get the current date and time:

select current_timestamp();

image