PostgreSQL中常用的日期函数包括:
current_date:返回当前日期。current_time:返回当前时间。current_timestamp:返回当前日期和时间。extract(field from source):从日期或时间字段中提取指定部分,如年、月、日等。age(timestamp, timestamp):返回两个日期之间的年龄间隔。date_part(text, timestamp):从指定时间戳中提取指定部分的值,类似于extract函数。date_trunc(text, timestamp):将时间戳截断到指定精度,如年、月、日等。to_char(timestamp, text):将时间戳格式化为指定的字符串格式。to_timestamp(text, text):将字符串转换为时间戳。interval:用于处理日期和时间间隔。

