@ 2017-07-04T07:59:47Z <?php
$mission_type = 0;
$start_dttm = ($mission_type == 0) ? strtotime("last Monday") : strtotime("last Friday"); // 리그 시작 일자
$end_dttm = ($mission_type == 0) ? strtotime("next Tuesday") : strtotime("next Thursday"); // 리그 종료 일자
// echo strtotime("last Monday");
// echo time();
echo date('ymd', strtotime("this Tuesday"));
echo '<br>';
echo date('ymd', strtotime("next Tuesday"));
// echo '<br>';
// echo date('ymd', $start_dttm);
// echo strtotime("this Tuesday");
// echo strtotime("next Tuesday");
$nextTuesday = strtotime('next wednesday');
$weekNo = date('W');
$weekNoNextTuesday = date('W', $nextTuesday);
//echo $nextTuesday;
// echo $weekNo;
// echo $weekNoNextTuesday;
if ($weekNoNextTuesday != $weekNo) {
//past tuesday
echo 0;
} else {
echo 1;
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.4 , 8.3.6 170704<br>1707111 Output for 8.3.5 Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
170704<br>1707111 preferences:dark mode live preview
166.91 ms | 402 KiB | 187 Q