当前位置:Gxlcms > 数据库问题 > mysql 时间戳

mysql 时间戳

时间:2021-07-01 10:21:17 帮助过:13人阅读

      // 时间为当前是日期
      $date = strtotime(date(‘Y-m-d‘,time()));
      //dd($date);
      //UNIX_TIMESTAMP(‘2006-11-04 12:23:00‘);
      $where = "DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘) = DATE_FORMAT(NOW(),‘%Y-%m-%d‘)";
      $where = "UNIX_TIMESTAMP(DATE_FORMAT(FROM_UNIXTIME(create_time),‘%Y-%m-%d‘)) = $date";

mysql 时间戳

标签:time()   nbsp   时间戳   form   create   rom   date   time   mysql   

人气教程排行