日期:2014-05-17 浏览次数:20508 次
$weekarray = date("w");
//echo $weekarray;
if ($weekarray =5 ){
$tomorrow = dgmdate(TIMESTAMP + '259200', 'Y-m-d');
}
elseif($weekarray = '6'){
$tomorrow = dgmdate(TIMESTAMP + '172800', 'Y-m-d');}
else {$tomorrow = dgmdate(TIMESTAMP + '86400', 'Y-m-d');}
$todaytime = strtotime(dgmdate(TIMESTAMP, 'Ymd'));
$_G['timestamp'] // 这个是 discuz 系统的专用的时间戳
$todaytime = strtotime(dgmdate(TIMESTAMP, 'Ymd'));
// 可以看到 'Ymd' 只精确到了天。因此$todaytime 的值类似于字符串 20121124