mysql 时间函数总结
世上没有钱解决不了的事,如果有,那就是你的钱不够。
mysql 很多的时间函数总结
now(), current_timestamp(); -- 当前日期时间

current_date(); -- 当前日期

current_time(); -- 当前时间

date('yyyy-mm-dd hh:ii:ss'); -- 获取日期部分

time('yyyy-mm-dd hh:ii:ss'); -- 获取时间部分

date_format('yyyy-mm-dd hh:ii:ss', '%d %y %a %d %m %b %j'); -- 格式化时间

unix_timestamp(); -- 获得unix时间戳

from_unixtime(); -- 从时间戳获得时间


浙公网安备 33010602011771号