ThinkPHP5 DB查询数据时把时间戳格式字段改为日期格式

$weight_data = Db::name('remote_detection')
			->where($where)
            ->field("item_name,first_check_weight,second_check_weight,from_unixtime(create_time,'%Y-%m-%d') as time")
            ->select();

你可能感兴趣的:(ThinkPHP,PHP,php,thinkphp)