strtotime - 날짜빼기, 날짜더하기
페이지 정보
작성자 관리자 작성일 20-09-18 09:45 조회 8,051 댓글 0본문
echo strtotime("now"), "n";
echo strtotime("10 September 2000"), "n";
echo strtotime("+1 day"), "n";
echo strtotime("+1 week"), "n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "n";
echo strtotime("next Thursday"), "n";
echo strtotime("last Monday"), "n";
//전월
date('Y-m', strtotime($this_ymd. ' - 1 month'));
//전년
date('Y-m', strtotime($this_ymd. ' - 1 year'));
--날짜빼기, 날짜더하기
echo strtotime("10 September 2000"), "n";
echo strtotime("+1 day"), "n";
echo strtotime("+1 week"), "n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "n";
echo strtotime("next Thursday"), "n";
echo strtotime("last Monday"), "n";
//전월
date('Y-m', strtotime($this_ymd. ' - 1 month'));
//전년
date('Y-m', strtotime($this_ymd. ' - 1 year'));
--날짜빼기, 날짜더하기
댓글목록 0
등록된 댓글이 없습니다.