PHP 버전
4+
echo strtotime('now'); // 설정된 시간대를 기준으로 하는 현재 시간

echo strtotime('2025-05-13 14:30:05'); // 1747146605

/* 
 * 시간까지 정확히 전달하지 않으면
 * 설정된 시간대를 기준으로 하는
 * 유닉스 타임스탬프가 계산되어 반환됩니다.
 * 따라서, 설정된 시간대에 따라 반환되는 유닉스 타임스탬프가 달라질 수 있습니다.
*/
echo strtotime('10 September 2000'); // 968544000
echo strtotime('2000-09-10'); // 968544000
echo strtotime('2000/09/10'); // 968544000

echo strtotime('September 2000'); // 967766400 (2000년 9월 1일 00:00:00)
echo strtotime('2000 September'); // 967766400 (2000년 9월 1일 00:00:00)
strtotime('2000 September 10'); // 영문 작성 순서가 다르면 false
strtotime('2000 09 10'); // 구분자가 없으면 false
strtotime('2000 / 09 / 10'); // 슬래시(/) 앞이나 뒤에 공백이 있으면 false
strtotime('2000 - 09 - 10'); // 하이픈(-) 앞이나 뒤에 공백이 있으면 false
strtotime('2000년 9월'); // 영문이 아닌 다른 언어가 있으면 false
strtotime(string $datetime, ?int $baseTimestamp = null): int|false
echo strtotime('+1 day');      // 현재 시점에서 하루 후
echo strtotime('-1 week');     // 현재 시점에서 일주일 전
echo strtotime('next Monday'); // 다음 월요일
echo strtotime('last day of this month'); // 이번 달 마지막 날

// 기준 시점으로 $baseTimestamp를 사용할 경우
$base = strtotime('2025-01-01');
echo strtotime('+1 day', $base); // 2025-01-02에 대한 유닉스 타임스탬프 반환
/* 원하는 특정 날짜와 시간을 지정했을 때 */
$timestamp = strtotime('2012-07-30'); // '2012-07-30'에 대한 유닉스 타임스탬프

echo date('Y-m-d H:i:s', $timestamp); // 출력 예시: 2012-07-30 00:00:00