获取现在的日期(显示年月日) curdate()

获得现在的时间(显示时分秒) curtime()

获取现在的日期时间(显示年月日时分秒) now()

获取现在的年 year(now())

获取现在的月 month(now())

获取现在的日 day(now())

获取现在的时 hour(now())

获取现在的分 minute(now())

获取现在的秒 second(now())

获取字符串'2024-08-09'中的年 year('2024-08-09')

获取现在距离'2024-9-1'过去了多少天 datediff(now(),'2024-9-1')

现在是'2024-9-1',还有多少天到'2025-1-1',获取天数 datediff('2025-1-1','2024-9-1')