代码如下:
Date.UTC(2015, 11, 1,21,37);
>1449005820000
new Date(1449005820000);
>Wed Dec 02 2015 05:37:00 GMT+0800 (中国标准时间)
new Date(1449005820000).toISOString().
replace(/T/, ' '). // replace T with a space
replace(/\..+/, '') // delete the dot and everything after
>"2015-12-01 21:37:00"
参考:How to format a date string in UTC;
最新评论
有没有港台节目直播?
One Drive提取密码?
大佬请问每次都需要在plugins中启动tiktok吗,还是直接启动app
不是个人的吧,华为应用商店里有公司名称,可以搜到的