日期函数

now  返回当前日期+时间

year 返回年

month 返回月

day 返回日

date_formate 将日期转换成字符

curdate 返回当前日期

str_to_date 将字符转换成日期

curtime 返回当前时间

hour 小时

minute分钟、

second 秒

datediff 返回两个日期相差的天数

monthname 以英文形式返回月

 

posted @ 2021-04-13 12:35  Dasn  阅读(64)  评论(0)    收藏  举报