|
|
@ -8,7 +8,7 @@ $fil = file($file_txt, FILE_IGNORE_NEW_LINES); |
|
|
|
// Insert header |
|
|
|
// Insert header |
|
|
|
$arr = ['| | | |', '|:------|:------|:------|']; |
|
|
|
$arr = ['| | | |', '|:------|:------|:------|']; |
|
|
|
$ts=(new DateTime('first day of this month'))->getTimeStamp(); |
|
|
|
$ts=(new DateTime('first day of this month'))->getTimeStamp(); |
|
|
|
$tues_ts = strtotime('fourth tuesday of this month + 1 day', $ts); |
|
|
|
$tues_ts = strtotime('fourth tuesday of this month', $ts); |
|
|
|
|
|
|
|
|
|
|
|
// Are we past the fourth Tuesday of the month? |
|
|
|
// Are we past the fourth Tuesday of the month? |
|
|
|
if ((new DateTime())->getTimeStamp() >= $tues_ts) { |
|
|
|
if ((new DateTime())->getTimeStamp() >= $tues_ts) { |
|
|
|