시간계산..

<?
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,040
12년 전 조회 877
12년 전 조회 964
12년 전 조회 917
12년 전 조회 731
12년 전 조회 1,580
12년 전 조회 1,957
12년 전 조회 955
12년 전 조회 2,435
12년 전 조회 856
12년 전 조회 1,753
12년 전 조회 806
12년 전 조회 813
12년 전 조회 3,823
12년 전 조회 908
12년 전 조회 946
12년 전 조회 984
12년 전 조회 610
12년 전 조회 1,663
12년 전 조회 1,722