XVIII. 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 and leap years into consideration when working with these functions.

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

Tämä laajennus ei määrittele yhtäkään konfigurointi asetusta.

Resource Types

Tämä laajennus ei määrittele yhtäkään resurssi-tyyppiä.

Predefined Constants

Tämä laajennus ei määrittele yhtäkään vakiota.

Sisällys
checkdate -- Validate a gregorian date
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
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