All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
C#代码书写规则
C#教程:保护注册表
jsp+ajax自动刷新实例_[AJAX教程]
SQL语句过滤字符_[SQL,Server教程]
asp.net2.0服务器控件之DropDownList控件
SQL,SERVER乐观锁定和悲观锁定使用实例_[SQL,Server教程]
C#,类型基础_[Asp.Net教程]
利用PHP和CSS改变网页文字大小_php资料_编程技术
网站?XML?我的思考_[XML教程]
PHP代码:得到客户端的IP_[PHP教程]
Reading number is top 10 pictures
The service WaLiangGe Chinese aircraft carrier1
The girl of like self-time
The household design, do not do bridal chamber a pity
毛俊杰-能量永动机
Plump, too plump!1
女人化妆前后的对比
Ashlynn Brooke photograph of a group3
From China fortress sora aoi2
Female model behind the bitterness, often being overcharged2
Absolutely shocked. National geographic 50 animal photographys6
Download software ranking
dreamweaver8中文版
Boxer vs Yellow1
Eclipse 4.2.2 For Win64
The king of fighters 97(Mobile phone games-apk)
DreamWeaver8
Boxer's Top ten classic battle3
Unix video tutorial6
Detective task-the top secret prostitution files
功夫熊猫2(下集)
Boxer vs Yellow4
delv published in(发表于) 2013/12/29 4:41:11 Edit(编辑)
PHP中计算两个日期之间的差_php资料_编程技术

PHP中计算两个日期之间的差_php资料_编程技术

PHP中计算两个日期之间的差_php资料_编程技术-你的首页-uuhomepage.com


/*


计算两个时间之间的天数之差,$type为类型。时间的格式为:2007-02-01


power by:antsnet.net


E-Mail:antsnet@163.com


*/


function day($dayone,$daytwo,$type){


$start_time_array=explode("-",$dayone);


$endtime_time_array=explode("-",$daytwo);


$start_time_year=$start_time_array[0];


$start_time_month=$start_time_array[1];


$start_time_day=$start_time_array[2];


$end_time_year=$endtime_time_array[0];


$end_time_month=$endtime_time_array[1];


$end_time_day=$endtime_time_array[2];


$start=mktime(0,0,0,$start_time_month ,$start_time_day,$start_time_year);


$end=mktime(0,0,0,$end_time_month ,$end_time_day,$end_time_year);


$result=$start-$end;


return $result;


}


?>





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.