פונקציות תאריך ושעה
הקדמה
פונקציות אלה מאפשרות לך לקבל את התאריך ואת השעה מהשרת היכן שהסקריפטים של ה- PHP רצים. אתה יכול להשתמש בפונקציות אלה על מנת לעצב את התאריך ואת השעה בדרכים שונות.
Note: אנא תהיה מודע לכך שפונקציות אלה תלויות בהגדרות המקומיות של השרת שלך. וודא כי לקחת בחשבון את שעון הקיץ/החורף ואת השנים המעוברות כאשר אתה עובד עם פונקציות אלה.
דרישות
אף ספריות חיצוניות דרושות לבניית תוספת זאת.
התקנה
לא קיימים דרישות הקתנה על מנת להשתמש בפונקציות אלה; הן חלק מליבת PHP.
הגדרות הרצה
לתוספת זאת אין שום הנחיות הגדרה מוגדרות בתוך php.ini.
סוגי משאבים
לתוספת זאת אין שום סוגי משאבים מוגדרים.
קבועים מוגדרים מראש
לתוספת זאת אין שום קבועים מוגדרים.
Table of Contents
- checkdate — מוודא תאריך לועזי
- 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 — 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
- 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