重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

php中的time(),date(),mktime(),strtotime()

time():返回当前的Unix时间戳;

在潍坊等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站设计、做网站 网站设计制作定制开发,公司网站建设,企业网站建设,品牌网站建设,营销型网站,成都外贸网站建设公司,潍坊网站建设费用合理。

date():格式化一个本地的时间戳;

mktime(时,分,秒,月,日,年):取得一个日期的时间戳;

strtotime():将任何英文文本的日期时间描述解析为Unix时间戳

echo time();

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

echo mktime(13,54,55,9,18,2015);

echo strtotime("now");

echo strtotime("10 September 2015");

echo strtotime("+1 day");

echo strtotime("+1 week");

echo strtotime("next Thursday");

echo strtotime("last Monday");


网站栏目:php中的time(),date(),mktime(),strtotime()
转载注明:http://cqcxhl.com/article/pepdsj.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP