1 date :格式化日期。
string date("格式"[,"时间戳"]);
2 date_default_timezone_set(string 时区);设置时区
Asia/Shanghai 中国时区
date_default_timezone_set("Asia/Shanghai");
3 time();获取unix时间戳。
int time();
4 strtotime();把任何标准的时间格式转换为unix时间戳。
本文地址:https://www.freemoban.com/php/2015/0303/816.html
Copyright:www.freemoban.com 免费模板网 All Rights Reserved 网站备案:辽ICP备19014872号-2 辽公网安备:42900402000182号
免责声明:本站部分资源来自互联网收集,版权归原创者所有,如果侵犯了你的权益,我们会及时删除侵权内容,联系QQ:1615187561 谢谢合作!