当前位置: 首页 > news >正文

网站集约化建设意见打开网页出现网站建设中

网站集约化建设意见,打开网页出现网站建设中,济南免费网站建设,关键词排名代发**PHP倒计时函数、求两个日期时间之间相差的时间函数、计算时差函数_PHP函数笔记**php/*** 求两个日期时间之间相差的时间* (针对1970年1月1日之后#xff0c;求之前可以采用泰勒公式)* param string $day1 2016-10-01 10:01:08* param string $day2 2020-10-01 10:01:08* ret…**PHP倒计时函数、求两个日期时间之间相差的时间函数、计算时差函数_PHP函数笔记**php/*** 求两个日期时间之间相差的时间* (针对1970年1月1日之后求之前可以采用泰勒公式)* param string $day1 2016-10-01 10:01:08* param string $day2 2020-10-01 10:01:08* return list*/function diffBetweenTwoDate($start_time, $end_time){$start strtotime($start_time);$stop strtotime($end_time);if($start $stop){$total_days ($stop-$start) / 86400;$result[total_days] intval($total_days);$result[year] 0;$result[month] 0;if($total_days 7){//如果小于7天直接返回天数$result[day] intval($total_days);}elseif($total_days 31){//小于28天则返回周数由于闰年2月满足了if($stop strtotime($start_time.1 month)){$result[month] 1;}else{//$w floor($total_days / 7);//$d ($stop - strtotime($start_time..$w. week)) / 86400;//$result[week] $w;//$result[day] intval($d);$result[day] intval($total_days);}}else{$y floor($total_days / 365);if($y 1){//如果超过一年$start strtotime($start_time..$y.year);$start_time date(Y-m-d,$start);//判断是否真的已经有了一年了如果没有的话就开减if($start$stop){$start_time date(Y-m-d,strtotime($start_time.-1 month));$m 11;$y--;}$total_days ($stop - strtotime($start_time)) / 86400;}if(isset($m)){$w floor($total_days / 7);$d $total_days-$w * 7;}else{$m isset($m) ? $m : round($total_days / 30);$stop strtotime($start_time..$m.month) ? $m : $m--;if($stop strtotime($start_time..$m.month)){$d $w ($stop-strtotime($start_time..$m.month)) / 86400;//$w floor($w / 7);//$d $d - $w * 7;}}$result[year] $y;$result[month] $m;//$result[week] $w;$result[day] intval(isset($d) ? $d : 0);}$result[hours] intval((($stop - $start) % 86400) / 3600);$result[min] intval(((($stop - $start) % 86400) % 3600) / 60);$result[sec] ((($stop - $start) % 86400) % 3600) % 60;}else{$result[total_days] 0;$result[year] 0;$result[month] 0;$result[day] 0;$result[hours] 0;$result[min] 0;$result[sec] 0;}//return array_filter($result);return $result;}返回字段**年、月、日、时、分、秒**最后更新于 2019-07-20 16:39:20 并被添加「倒计时 php函数笔记」标签已有 14971 位童鞋阅读过。本站使用「署名 4.0 国际」创作共享协议可自由转载、引用但需署名作者且注明文章出处相关文章
http://wiki.neutronadmin.com/news/110154/

相关文章:

  • 关于网站开发的参考文献有哪些网站建设的电话销售
  • 河北建设安装工程有限公司怎么样seo是什么意思 seo是什么职位
  • 广东建设项目备案公示网站青岛网站权重提升
  • 荣县住房和城乡建设厅网站网络营销对传统营销有哪些冲击
  • 西安建设网站公司怎么建设淘宝联盟的网站
  • 视频网站X站H站搭建建设天津网架公司
  • 学校网站建设培训方案模板潍坊市住房和城乡建设局网站下载
  • 教你如何用天翼云盘做网站如何设计个人网站
  • 页面看不到网站wordpress更改固定链接后
  • 徐州网站建设网络推广wordpress park主题
  • 上传到网站的根目录中国内网站制作特点
  • 贵阳网站建设功能济宁优化推广公司
  • 江门h5模板建站开装潢公司做网站
  • 自建网站备案通过后怎么做宁波网络公司董事长
  • 网站开发网页跳转到新的页面网站建设和管理情况自查报告
  • 新乡做网站的公司oa系统下载
  • php网站连接数据库教程济南物流公司网站建设
  • 贵金属如何用网站开发客户油漆涂料网站建设
  • 如何引用404做网站网站平台建设哪家公司好
  • 建设网站需要哪些费用电商培训机构需要什么资质
  • 广州淘宝网站建设开发板推荐
  • 互联网公司响应式网站周口网站制作哪家好
  • 苏州网站建设caiyiduo百度关键词搜索怎么弄
  • 基金会网站开发方案网站项目上线流程
  • 做网站需要做手机版吗广东东莞地图
  • 机票最便宜网站建设小米路由器建设网站
  • 松江移动网站建设小程序开发平台哪种品牌的好
  • 中国书画画廊网站模板杭州网站制作模板
  • 网站建设工作不足及整改网络推广外包注意哪些
  • 笔记本电脑可以做网站服务器重庆做网站设计