您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

在PHP中的gmmktime()函数

2025/5/15 4:11:17发布16次查看
the gmmktime() function returns the unix timestamp for a gmt date.
syntaxgmmktime(hour,minute,second,month,day,year,is_dst);
parametershour − specifies the hour.
minute − specifies the minute
second − specifies the second
month − specifies the month
day − specifies the day
year − specifies the year
is_dst − parameters always represent a gmt date so is_dst doesn't influence the result.
returnthe gmmktime() function returns a integer unix timestamp.
examplethe following is an example −
live demo
<?php $time = gmmktime(0,0,0,9,10,2017); print($time . "
");?>
output1505001600
示例让我们看另一个例子 −
实时演示
<?php echo "nov 10, 2017 was on a ".date("l", gmmktime(0,0,0,11,10,2017));?>
outputnov 10, 2017 was on a friday
以上就是在php中的gmmktime()函数的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product