728x90

<?php
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"
;
?>

728x90

'프로그래밍 > php' 카테고리의 다른 글

mysql 함수 사용법  (0) 2019.11.26
Hierarchical queries in MySQL  (0) 2019.10.04
PHP $_SERVER 정리  (0) 2013.08.01
Mysql table의 AutoIncrement 값을 가져오기  (0) 2013.07.09
ORACLE, MSSQL, MYSQL 날짜함수 비교  (0) 2012.08.08

+ Recent posts