之前在用到时间的时候只会 date()..后来感觉不好转换。上手册找找
看看DZ的代码。。觉得time()的时间辍太方便了。。要什么表示就怎么表示。。转换自由。。太方便了
以下就是小段代码。。计算N+_天后的时间
function
GetNtime(
$time
,
$nday
,
$ifd
=
''
)
{
$ndate = $time + ( $nday * 3600 * 24 );
$rowdate =! empty ( $ifd ) ? $ndate : date ( " Y-m-d H:i " , $ndate );
return $rowdate ;
}
{
$ndate = $time + ( $nday * 3600 * 24 );
$rowdate =! empty ( $ifd ) ? $ndate : date ( " Y-m-d H:i " , $ndate );
return $rowdate ;
}