Funkcie dátumu a času
Úvod
Tieto funkcie vám umožňujú získať dátum a čas zo servera, kde bežia vaše PHP skripty. Tieto funkcie môžete používať na formátovanie dátumu a času rôznymi spôsobmi.
Note: Prosím pamätajte, že tieto funkcie sú závislé na lokálnych nastaveniach vášho servera. Pri práci s týmito funkciami treba brať do úvahy letný čas a priestupné roky.
Požiadavky
Žiadne externé knižnice nie sú potrebné na vybudovanie tohto rozšírenia.
Inštalácia
Nie je potrebná žiadna inštalácia na použitie týchto funkcií; sú časťou jadra PHP.
Runtime Konfigurácia
Toto rozšírenie nemá žiadne konfiguračné direktívy definované v php.ini.
Typy zdrojov
Toto rozšírenie nemá definované žiadne typy zdrojov.
Preddefinované Konštanty
Toto rozšírenie nemá definované žiadne konštanty.
Table of Contents
- checkdate — Zistiť platnosť gregoriánskeho dátumu
- 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 — Sformátovať miestny čas/dátum
- getdate — Získať informácie o dátume/čase
- gettimeofday — Získať aktuálny čas
- gmdate — Sformátovať GMT/UTC dátum/čas
- gmmktime — Získať UNIXový timestamp pre GMT dátum
- gmstrftime — Sformátovať GMT/UTC čas/dátum podľa miestnych nastavení
- idate — Format a local time/date as integer
- localtime — Získať miestny čas
- microtime — Vráti» aktuálny UNIXový timestamp v mikrosekundách
- mktime — Získáť UNIXový timestamp pre dátum
- strftime — Sformátovať miestny čas/dátum podľa miestnych nastavení
- strptime — Parse a time/date generated with strftime
- strtotime — Premeniť akýkoľvek anglický textový popis času a dátumu na UNIXový timestamp
- time — Vrátiť aktuálny UNIXový 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