30분 빼기..

<tr>
<td>마감시간 : <?=$register_day?></td>
</tr>
<?
if($row[bo_delete_date] != "0000-00-00 00:00:00"){
$it_cancel_date = substr($row[bo_delete_date], 5, 5);
$it_cancel_time = substr($row[bo_delete_date], 11, 5);
$it_cancel_day_name = $week[date('w', strtotime($row[bo_delete_date]))];
$register_cancel_day = $it_cancel_date." (".$it_cancel_day_name.") ".$it_cancel_time;
?>

여기서 한 30분을 뺴서 표기하고 싶은데 어케 하나요;
라고 질문했었고.



if($row[bo_delete_date] != "0000-00-00 00:00:00"){
$row['bo_delete_date'] = date("Y-m-d H:i:s", strtotime('- 30 minutes', strtotime( $row['bo_delete_date']));//30분 빼기...

일케 답변주셧는데 안되네요 ㅠㅠ


마감시간 30분 앞으로 계산되서 출력하는방법 없을까요 ㅠ
|

댓글 1개

$row['bo_delete_date']=date("Y-m-d H:i:s",strtotime($row['bo_delete_date'])-30*60);
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12년 전 조회 1,089
12년 전 조회 2,775
12년 전 조회 811
12년 전 조회 1,300
12년 전 조회 695
12년 전 조회 1,877
12년 전 조회 1,747
12년 전 조회 1,145
12년 전 조회 1,015
12년 전 조회 872
12년 전 조회 735
12년 전 조회 695
12년 전 조회 1,976
12년 전 조회 707
12년 전 조회 1,584
12년 전 조회 1,296
12년 전 조회 1,655
12년 전 조회 1,179
12년 전 조회 1,557
12년 전 조회 2,375