XVII. 날짜와 시간 함수

소개

이 함수들은 PHP가 실행되고 있는 서버로부터 날짜와 시간을 얻을 수 있게 합니다. 여러가지 다른 방법으로 날짜와 시간 출력을 형식화할 수 있습니다.

참고: 이 함수들은 서버의 지역설정에 의존한다는 점을 명심하십시오. 특히 윤년과 일광 절약 시간을 생각해서 작업하십시오.

요구 사항

이 확장 모듈을 빌드할 때 외부 라이브러리가 필요하지 않습니다.

설치

이 함수들은 설치하지 않아도 사용할 수 있습니다; PHP 코어의 일부입니다.

런타임 설정

이 확장 모듈은 php.ini 설정이 존재하지 않습니다.

리소스 종류

이 확장 모듈은 리소스형을 정의하지 않습니다.

상수 정의

이 확장 모듈은 상수를 정의하지 않습니다.

차례
checkdate -- 그레고리안력 날짜를 확인합니다.
date -- 로컬 날짜/시간을 형식화합니다.
getdate -- 날짜/시간 정보를 가져온다
gettimeofday -- Get current time
gmdate -- Format a GMT/UTC date/time
gmmktime -- Get Unix timestamp for a GMT date
gmstrftime --  Format a GMT/UTC time/date according to locale settings
idate --  Format a local time/date as integer
localtime -- Get the local time
microtime --  Return current Unix timestamp with microseconds
mktime -- Get Unix timestamp for a date
strftime --  Format a local time/date according to locale settings
strtotime --  Parse about any English textual datetime description into a Unix timestamp
time -- Return current Unix timestamp