XIX. Date and Time Functions

Introduction

These functions allow you to get the date and time from the server where your PHP scripts are running. You can use these functions to format the date and time in many different ways.

Huomaa: Please keep in mind that these functions are dependent on the locale settings of your server. Make sure to take daylight saving time (use e.g. $date = strtotime('+7 days', $date) and not $date += 7*24*60*60) and leap years into consideration when working with these functions.

Requirements

T�m�n laajennuksen asentaminen ei vaadi ylim��r�isi� ohjelmakirjastoja.

Installation

N�iden funktioiden k�ytt� ei vaadi erillisten ohjelmien asentamista; ne toimitetaan PHP:n mukana.

Runtime Configuration

T�m� laajennus ei m��rittele yht�k��n direktiivi� php.iniss�.

Resource Types

T�m� laajennus ei m��rittele yht�k��n resurssityyppi�.

Predefined Constants

T�m� laajennus ei m��rittele yht�k��n uutta vakiota.

Sisällys
checkdate -- Validate a Gregorian date
date_sunrise --  Returns time of sunrise for a given day and location
date_sunset --  Returns time of sunset for a given day and location
date -- Format a local time/date
getdate -- Get date/time information
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
strptime --  Parse a time/date generated with strftime()
strtotime --  Parse about any English textual datetime description into a Unix timestamp
time -- Return current Unix timestamp