美文网首页
日期--时间的转化

日期--时间的转化

作者: 程序员的自我修养 | 来源:发表于2020-05-26 23:09 被阅读0次

日期时间转化为时间戳:

    strtotime($v->end_at) < time()

    时间戳转化为日期

    date("Y-m-d H:i:s", time()) ;

    这样连时,分秒一起显示

    date("Y-m-d ", time()); 只年示年月日

相关文章

网友评论

      本文标题:日期--时间的转化

      本文链接:https://www.haomeiwen.com/subject/qxpuohtx.html