摘要: php时间格式的转换函数有date(),strtotime()函数,php 原生的时间类也可以转换时间格式。 1、Y-m-d转换为时间戳 例:2017-08-22 转化为时间戳 strtotime(‘2017-08-22’); 2、时间戳转换为Y-m-d H:i:s date("Y-m-d H:i: 阅读全文
posted @ 2017-08-22 17:51 努力的喵喵 阅读(25868) 评论(0) 推荐(0) 编辑