XXII. Datum en Tijd functies

Introductie

Je kunt deze functies gebruiken om data en tijden te behandelen. Deze functies stellen je in staat om de tijd en de datum op te vragen van de server waarop PHP draait. Je kunt deze functies gebruiken om tijden en data op verschillende manieren weer te geven.

Opmerking: Denk eraan dat deze functies afhangen van de locale instelling op de server. Denk vooral aan zomertijd en schrikkeljaren.

Afhankelijkheden

Deze functies zijn beschikbaar als onderdeel van de standaard module die altijd beschikbaar is.

Installatie

Er zijn geen handelingen nodig m.b.t. tot installatie voor deze functies, deze maken deel uit van de kern van PHP.

Configuratie tijdens scriptuitvoer

Deze extensie gebruikt geen configuratie regels.

Resource types

Deze extensie maakt geen gebruik van resources.

Voorgedefinieerde constanten

Deze extensie definieert geen constanten.

Inhoudsopgave
checkdate -- Valideer een Gregoriaanse datum
date_create -- Returns new DateTime object
date_date_set -- Sets the date
date_default_timezone_get --  Gets the default timezone used by all date/time functions in a script
date_default_timezone_set --  Sets the default timezone used by all date/time functions in a script
date_format -- Returns date formatted according to given format
date_isodate_set -- Sets the ISO date
date_modify -- Alters the timestamp
date_offset_get -- Returns the daylight saving time offset
date_parse -- Returns associative array with detailed info about given date
date_sun_info -- Returns an array with information about sunset/sunrise and twilight begin/end
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_time_set -- Sets the time
date_timezone_get -- Return time zone relative to given DateTime
date_timezone_set -- Sets the time zone for the DateTime object
date -- Formatteer een lokale date/time
getdate -- Verkrijg date/time informatie
gettimeofday -- Geef de huidige tijd
gmdate -- Formatteer een GMT/CUT date/time
gmmktime -- Verkrijg UNIX timestamp voor een GMT date
gmstrftime --  Formatteer een GMT/CUT time/date volgens locale settings
idate -- Format a local time/date as integer
localtime -- Geef de local time
microtime --  Geef huidige UNIX timestamp met microseconden
mktime -- Geef UNIX timestamp voor een date
strftime --  Formatteer een local time/date volgens de locale settings
strptime --  Parse a time/date generated with strftime()
strtotime --  Parse ongeveer elke engelse textuele datetime omschrijving naar een UNIX timestamp
time -- Geef de huidige UNIX timestamp
timezone_abbreviations_list -- Returns associative array containing dst, offset and the timezone name
timezone_identifiers_list -- Returns numerically index array with all timezone identifiers
timezone_name_from_abbr -- Returns the timezone name from abbrevation
timezone_name_get -- Returns the name of the timezone
timezone_offset_get -- Returns the timezone offset from GMT
timezone_open -- Returns new DateTimeZone object
timezone_transitions_get -- Returns all transitions for the timezone