30분 빼기..

· 2013-09-05 (목) 09:32:02 · 947 · 1
<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개

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

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-09-05 조회 1,834
13-09-05 조회 1,234
13-09-05 조회 1,098
13-09-05 조회 948
13-09-05 조회 828
13-09-05 조회 774
13-09-05 조회 2,062
13-09-05 조회 784
13-09-04 조회 1,677
13-09-04 조회 1,385
13-09-04 조회 1,730
13-09-04 조회 1,254
13-09-04 조회 1,627
13-09-04 조회 2,450
13-09-04 조회 2,359
13-09-04 조회 1,707
13-09-04 조회 1,699
13-09-04 조회 1,620
13-09-04 조회 896
13-09-04 조회 801