生活点滴wugw.blog.chinaunix.net
pywugw
全部博文(32)
Django(1)
Twisted(2)
wxPython(2)
Basic(8)
awk(0)
2010年(31)
2009年(1)
一鸣雨
zhuqing_
大鬼不动
indure
xiaoyant
lzh21990
qinglin9
77jessie
jnlehaha
我是小小
panda818
aoerqile
a5563206
kwunkau
郝姬友
jishuchu
jimmytin
finding2
分类:
2010-05-09 23:04:55
function getDateList($sdate,$edate){ $dateList = array(); try{ $sDateList = explode('-',$sdate); $eDateList = explode('-',$edate); $sdate = mktime(0,0,0,$sDateList[1],$sDateList[2],$sDateList[0]); $edate = mktime(0,0,0,$eDateList[1],$eDateList[2],$eDateList[0]); if($sdate > $edate or $sdate > time()) { return null; } if ($edate > time()) { $edate = time(); } }catch(Exception $e){ return null; } while($sdate <= $edate) { array_push($dateList,date('Y-m-d', $sdate)); $sdate = $sdate + 60*60*24; } return $dateList;}
上一篇:Ubuntu10.04安装雅黑字体
下一篇:搭建Ubuntu10.04+lighttpd+fastcgi+Django
登录 注册