巅云智能建站平台搭建版(创业流派版)火爆上线,毕生受权!新增:文章智能收罗+全站真静态打包+都会分站+智能小法式+不法词过滤+H5自顺应+智能链词等功效功效概况
建站专提News

PHP利用gmdate完成将一个UNIX 时辰格局化成GMT文本的体例

一佰互联网站开辟设想(www.taishanly.com) 宣布日期 2020-04-28 13:45:27 阅读数: 141

本文实例报告了PHP利用gmdate完成将一个UNIX 时辰格局化成GMT文本的体例。分享给大师供大师参考。具体阐发以下:

语法以下:

string gmdate (string $Format)string gmdate (string $Format, int $Time)

演示代码

<?phpecho "When this page was loaded,";echo "It was then ", gmdate ("r"), "";echo "The currend gmdate was ", gmdate ("F j, Y"), "";echo "The currend gmdate was ", gmdate ("M j, Y"), "";echo "The currend gmdate was ", gmdate ("m/d/y"), "";echo "The currend gmdate was the ", gmdate ("jS of M, Y"), "";echo "The currend time was ", gmdate ("g:i:s A T"), "";echo "The currend time was ", gmdate ("H:i:s O"), "";echo gmdate ("Y");gmdate ("L")?(print " is"):(print " is not");echo " a leap year";echo time ("U"), " seconds had elapsed since January 1, 1970.";?>

输入成果以下:

When this page was loaded,It was then Sun, 27 Dec 2009 13:08:53 +0000The currend gmdate was December 27, 2009The currend gmdate was Dec 27, 2009The currend gmdate was 12/27/09The currend gmdate was the 27th of Dec, 2009The currend time was 1:08:53 PM GMTThe currend time was 13:08:53 +00002009 is not a leap year1261919333 seconds had elapsed since January 1, 1970.

但愿本文所述对大师的php法式设想有所赞助。

一佰互联是天下着名建站品牌办事商,咱们有九年、网站建造、网页设想、php开辟和域名注册及假造主机办事经历,供给的办事更是天下着名。最近几年来还整合团队上风自立开辟了可视化多用户”“3.0平台版,拖拽排版网站建造设想,轻松完成pc站、手机微网站、小法式、APP一体化全网营销网站扶植 ,已胜利的为天下上百家收集公司供给自助建站平台搭建办事。更多资讯:tags标签

相干消息more

11
01月
网页设想须要合适用户咀嚼能力进步着陆页转化

162017/02 网页设想须要合适用户咀嚼能力进步着陆页转化 在当公司出新勾当或新产物的时辰,咱们普通会去为活... >>概况

30
04月
PHP在特别字符前加斜杠的完成代码

复制代码 代码以下: <?php $zongzi = "asdfasdf(asdfasdf?asfdadsf)"; echo $zon... >>概况

08
04月
想进修设想心思学?先把握这9个最罕见的体例!

设想心思学内容提要:锚定(Anchoring)许诺与分歧性(Commitment and Consistency)讨厌丧失(Loss Ave... >>概况

02
12月
手机建站,wap建站

手机建站,建一个手机拜候的特别WAP网站,一佰互联作为国际最大的自助建站办事商,由于专一建站以是更专业。两大建站体系,同时赠予手机网站。同步... >>概况

高端网站扶植

美工统筹SEO,为企业电子商务营销助力!

德律风:

023-85725751
建站

产物

域名注册 假造主机 云办事器 企业邮局
智能建站 APP打包 微站/小法式 创业平台
网站推行 媒体营销 智能收罗 AI机械人
400德律风 短信营销 店销机械人
私家定制 流派网站