XVIII. 날짜와 시간 함수

Introduction

날짜와 시간을 다루기 위해 이 함수들을 이용할 수 있다. 이 함수들은 PHP가 실행되고 있는 서버로부터 날짜와 시간을 얻을 수 있게 한다. 많은 다른 방법으로 날짜와 시간 출력을 형식화하기 위해 이 함수들을 이용할 수 있다.

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

Requirements

These functions are available as part of the standard module, which is always available.

Installation

There is no installation needed to use these functions, they are part of the PHP core.

Runtime Configuration

This extension does not define any configuration directives.

Resource Types

This extension does not define any resource types.

Predefined Constants

This extension does not define any constants.

차례
checkdate -- Validate a gregorian date/time
date -- Format a local time/date
getdate -- Get date/time information
gettimeofday -- Get current time
gmdate -- Format a GMT/CUT date/time
gmmktime -- Get UNIX timestamp for a GMT date
gmstrftime --  Format a GMT/CUT time/date according to locale settings
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