날짜 관련해서 여러 참고 자료들이 많치만
제가 많이 쓰는 것들만 올려봅니다.
$time = time();
echo date("Y-m-d",strtotime("-1 day", $time))." 하루 전(어제)";
echo date("Y-m-d",strtotime("-1 day", $time))." 하루 전(어제)";
echo date("Y-m-d",strtotime("now", $time))." 현재";
echo date("Y-m-d",strtotime("+1 day", $time))." 하루 후(내일)";
echo date("Y-m-d",strtotime("+1 week", $time))." 일주일 후";
echo date("Y-m-d",strtotime("-1 month", $time))." 한달 전";
echo date("Y-m-d",strtotime("+1 month", $time))." 다음달";
echo date("Y-m-d",strtotime("+6 month", $time))." 6달후";
echo date("Y-m-d",strtotime("+12 month", $time))." 12달후";
echo date("Y-m-d",strtotime("next Thursday", $time))." 다음주 목요일";
echo date("Y-m-d",strtotime("last Monday", $time))." 지난 월요일";
echo date("Y-m-d",strtotime("10 September 2000", $time))." 2000년 9월 10일";
echo strtotime("+5 minutes"); " 현재 시간보다 5분 후";
게시판 목록
팁게시판
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 152 | 20년 전 | 4917 | ||
| 151 | 20년 전 | 4554 | ||
| 150 | 20년 전 | 3498 | ||
| 149 | 20년 전 | 3771 | ||
| 148 | 20년 전 | 7049 | ||
| 147 | 20년 전 | 3531 | ||
| 146 | 20년 전 | 2608 | ||
| 145 | 20년 전 | 2610 | ||
| 144 | 20년 전 | 7157 | ||
| 143 | 20년 전 | 4568 | ||
| 142 | 20년 전 | 1881 | ||
| 141 | 20년 전 | 3239 | ||
| 140 | 20년 전 | 1953 | ||
| 139 | 20년 전 | 1546 | ||
| 138 | 20년 전 | 2301 | ||
| 137 | 20년 전 | 1800 | ||
| 136 | 20년 전 | 1456 | ||
| 135 | 20년 전 | 1804 | ||
| 134 | 20년 전 | 2976 | ||
| 133 | 20년 전 | 2414 | ||
| 132 | 20년 전 | 1722 | ||
| 131 | 20년 전 | 1653 | ||
| 130 | 20년 전 | 4004 | ||
| 129 | 20년 전 | 2925 | ||
| 128 | 20년 전 | 3634 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기