시간계산..

<?
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분을 뺴서 표기하고 싶은데 어케 하나요;
|

댓글 1개

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분 빼기...
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
12년 전 조회 1,074
12년 전 조회 905
12년 전 조회 995
12년 전 조회 944
12년 전 조회 755
12년 전 조회 1,605
12년 전 조회 1,981
12년 전 조회 978
12년 전 조회 2,461
12년 전 조회 880
12년 전 조회 1,780
12년 전 조회 833
12년 전 조회 835
12년 전 조회 3,842
12년 전 조회 935
12년 전 조회 973
12년 전 조회 1,007
12년 전 조회 634
12년 전 조회 1,689
12년 전 조회 1,745