WordPress功能函數(shù)calendar_week_mod()
wordpress功能函數(shù)calendar_week_mod(),從一周的開始計(jì)算天數(shù)。
參數(shù)
$num
(int) (必需) 天的數(shù)量。
返回
(float)從本周開始的天數(shù)。
來源
文件: wp-includes/general-template.php
function calendar_week_mod( $num ) {
$base = 7;
return ( $num - $base * floor( $num / $base ) );
}
版權(quán)聲明:
本站所有文章和圖片均來自用戶分享和網(wǎng)絡(luò)收集,文章和圖片版權(quán)歸原作者及原出處所有,僅供學(xué)習(xí)與參考,請(qǐng)勿用于商業(yè)用途,如果損害了您的權(quán)利,請(qǐng)聯(lián)系網(wǎng)站客服處理。