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

Reading number is top 10 articles
C#箴言:定义常量的两种方法_[Asp.Net教程]
C#操作MySQL中文乱码的解决方案_[Asp.Net教程]
HOW,TO—操作定长字符串_[Asp.Net教程]
PHP实例:生成静态页面的函数_[PHP教程]
偷懒秘笈之一键生成,Ajax,Control,Toolkit,标记_[Asp.Net教程]
SQL的一些函数_[SQL,Server教程]
利用UrlRewrite,asp.net动态生成htm页面_[Asp.Net教程]
十天学会ASP.net,第三天_.net资料_编程技术
C#,存取数据库中的图像_[Asp.Net教程]
SQL数据操作基础(中级)9_mssql学习_编程技术
Reading number is top 10 pictures
西班牙山村小景2
牛奶和人奶哪个好?
Chinese paper-cut grilles art appreciation8
清纯性感的美眉2
美丽的桂林风光1
China's first snake village3
Hunan province aizhai super-large suspension bridge open to traffic and 4 world first1
Sora aoi possession photo2
The money of more than 100 countries and regions19
王艳写真温柔如水2
Download software ranking
Unix video tutorial19
Boxer's Top ten classic battle5
Tram sex maniac 2 (H) rar bag19
Professional killers2 data package
Tram sex maniac 2 (H) rar bag1
Tram sex maniac 2 (H) rar bag6
Boxer's Top ten classic battle1
Wild things 2
Take off clothes to survival
卡丁车单机版
delv published in(发表于) 2013/12/29 4:41:52 Edit(编辑)
php时间加减_php资料_编程技术

php时间加减_php资料_编程技术

php时间加减_php资料_编程技术-你的首页-uuhomepage.com
下列收集日期计算的方法:
某个日期加几天:
$tdate=date("Y-m-d");
$a=date( "Y-m-d", mktime(0,0,0,date("m"),date("d")+3,date("Y")));
$sql="select * from memo where username='$session_user_id'
and compid=$compid and telldate>='$tdate' and telldate<='$a'
order by id desc"; $ret=mysql_query($sql,$conn);
$a就是今天+三天的时间! $b=date( "Y-m-d", mktime(0,0,0,date("m"),date("d")-3,date("Y"))); 
$b就是今天-三天的时间!
////
某个日期加n天后的日期
$days=abs((strtotime(date("Y-m-d"))-strtotime("xxxx-xx-xx"))/86400);
/////
="2003-7-15";//也可以是:$Date_1="2003-7-15 23:29:14"; $Date_2="1982-10-1"; 
$d1=strtotime($Date_1); $d2=strtotime($Date_2); $Days=round(($d1-$d2)/3600/24);
Echo
"偶已经奋斗了 $Days 天^_^";




添加到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.