日期时间转为数字20180227165023(2017年12月06日 10:30:38)

编程入门 行业动态 更新时间:2024-10-26 10:29:30

<a href=https://www.elefans.com/category/jswz/34/1771397.html style=日期时间转为数字20180227165023(2017年12月06日 10:30:38)"/>

日期时间转为数字20180227165023(2017年12月06日 10:30:38)

2017年12月06日 10:30:38

变为数字

20180227165023

$time=date("Y-m-d H:i:s",time());
$number=date('Y').date('m').date('d').date('H').date('i').date('s');

 

20191116203507(不是时间截) 转 2017-09-14 12:32:16

$starttime1='20191116203507';
$starttime=substr($starttime1,0,4).'-'.substr($starttime1,4,2).'-'.substr($starttime1,6,2).' '.substr($starttime1,8,2).':'.substr($starttime1,10,2).':'.substr($starttime1,12,2);        
dump($starttime);die;

输出:2019-11-16 20:35:07

 

 

 

更多推荐

日期时间转为数字20180227165023(2017年12月06日 10:30:38)

本文发布于:2024-03-08 01:01:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1719429.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   数字   时间

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!