|
php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
| interface | DateTimeInterface |
| class | DateTime |
| class | DateTimeImmutable |
| class | DateTimeZone |
| class | DateInterval |
| class | DatePeriod |
| class | DateError |
| class | DateObjectError |
| class | DateRangeError |
| class | DateException |
| class | DateInvalidTimeZoneException |
| class | DateInvalidOperationException |
| class | DateMalformedStringException |
| class | DateMalformedIntervalStringException |
| class | DateMalformedPeriodStringException |
Functions | |
| strtotime (string $datetime, ?int $baseTimestamp=null) | |
| date (string $format, ?int $timestamp=null) | |
| idate (string $format, ?int $timestamp=null) | |
| gmdate (string $format, ?int $timestamp=null) | |
| mktime (int $hour, ?int $minute=null, ?int $second=null, ?int $month=null, ?int $day=null, ?int $year=null) | |
| gmmktime (int $hour, ?int $minute=null, ?int $second=null, ?int $month=null, ?int $day=null, ?int $year=null) | |
| checkdate (int $month, int $day, int $year) | |
| strftime (string $format, ?int $timestamp=null) | |
| gmstrftime (string $format, ?int $timestamp=null) | |
| time () | |
| localtime (?int $timestamp=null, bool $associative=false) | |
| getdate (?int $timestamp=null) | |
| date_create (string $datetime="now", ?DateTimeZone $timezone=null) | |
| date_create_immutable (string $datetime="now", ?DateTimeZone $timezone=null) | |
| date_create_from_format (string $format, string $datetime, ?DateTimeZone $timezone=null) | |
| date_create_immutable_from_format (string $format, string $datetime, ?DateTimeZone $timezone=null) | |
| date_parse (string $datetime) | |
| date_parse_from_format (string $format, string $datetime) | |
| date_get_last_errors () | |
| date_format (DateTimeInterface $object, string $format) | |
| date_modify (DateTime $object, string $modifier) | |
| date_add (DateTime $object, DateInterval $interval) | |
| date_sub (DateTime $object, DateInterval $interval) | |
| date_timezone_get (DateTimeInterface $object) | |
| date_timezone_set (DateTime $object, DateTimeZone $timezone) | |
| date_offset_get (DateTimeInterface $object) | |
| date_diff (DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute=false) | |
| date_time_set (DateTime $object, int $hour, int $minute, int $second=0, int $microsecond=0) | |
| date_date_set (DateTime $object, int $year, int $month, int $day) | |
| date_isodate_set (DateTime $object, int $year, int $week, int $dayOfWeek=1) | |
| date_timestamp_set (DateTime $object, int $timestamp) | |
| date_timestamp_get (DateTimeInterface $object) | |
| timezone_open (string $timezone) | |
| timezone_name_get (DateTimeZone $object) | |
| timezone_name_from_abbr (string $abbr, int $utcOffset=-1, int $isDST=-1) | |
| timezone_offset_get (DateTimeZone $object, DateTimeInterface $datetime) | |
| timezone_transitions_get (DateTimeZone $object, int $timestampBegin=PHP_INT_MIN, int $timestampEnd=PHP_INT_MAX) | |
| timezone_location_get (DateTimeZone $object) | |
| timezone_identifiers_list (int $timezoneGroup=DateTimeZone::ALL, ?string $countryCode=null) | |
| timezone_abbreviations_list () | |
| timezone_version_get () | |
| date_interval_create_from_date_string (string $datetime) | |
| date_interval_format (DateInterval $object, string $format) | |
| date_default_timezone_set (string $timezoneId) | |
| date_default_timezone_get () | |
| date_sunrise (int $timestamp, int $returnFormat=SUNFUNCS_RET_STRING, ?float $latitude=null, ?float $longitude=null, ?float $zenith=null, ?float $utcOffset=null) | |
| date_sunset (int $timestamp, int $returnFormat=SUNFUNCS_RET_STRING, ?float $latitude=null, ?float $longitude=null, ?float $zenith=null, ?float $utcOffset=null) | |
| date_sun_info (int $timestamp, float $latitude, float $longitude) | |
Variables | |
| const | DATE_ATOM = "Y-m-d\\TH:i:sP" |
| const | DATE_COOKIE = "l, d-M-Y H:i:s T" |
| const | DATE_ISO8601 = "Y-m-d\\TH:i:sO" |
| const | DATE_ISO8601_EXPANDED = "X-m-d\\TH:i:sP" |
| const | DATE_RFC822 = "D, d M y H:i:s O" |
| const | DATE_RFC850 = "l, d-M-y H:i:s T" |
| const | DATE_RFC1036 = "D, d M y H:i:s O" |
| const | DATE_RFC1123 = "D, d M Y H:i:s O" |
| const | DATE_RFC7231 = "D, d M Y H:i:s \\G\\M\\T" |
| const | DATE_RFC2822 = "D, d M Y H:i:s O" |
| const | DATE_RFC3339 = "Y-m-d\\TH:i:sP" |
| const | DATE_RFC3339_EXTENDED = "Y-m-d\\TH:i:s.vP" |
| const | DATE_RSS = DATE_RFC1123 |
| const | DATE_W3C = DATE_RFC3339 |
| const | SUNFUNCS_RET_TIMESTAMP = UNKNOWN |
| const | SUNFUNCS_RET_STRING = UNKNOWN |
| const | SUNFUNCS_RET_DOUBLE = UNKNOWN |
| checkdate | ( | int | $month, |
| int | $day, | ||
| int | $year ) |
Definition at line 122 of file php_date.stub.php.
| date | ( | string | $format, |
| ?int | $timestamp = null ) |
@refcount 1
Definition at line 107 of file php_date.stub.php.
| date_add | ( | DateTime | $object, |
| DateInterval | $interval ) |
Definition at line 188 of file php_date.stub.php.
| date_create | ( | string | $datetime = "now", |
| ?DateTimeZone | $timezone = null ) |
@refcount 1
Definition at line 151 of file php_date.stub.php.
| date_create_from_format | ( | string | $format, |
| string | $datetime, | ||
| ?DateTimeZone | $timezone = null ) |
@refcount 1
Definition at line 158 of file php_date.stub.php.
| date_create_immutable | ( | string | $datetime = "now", |
| ?DateTimeZone | $timezone = null ) |
@refcount 1
Definition at line 154 of file php_date.stub.php.
| date_create_immutable_from_format | ( | string | $format, |
| string | $datetime, | ||
| ?DateTimeZone | $timezone = null ) |
@refcount 1
Definition at line 162 of file php_date.stub.php.
| date_date_set | ( | DateTime | $object, |
| int | $year, | ||
| int | $month, | ||
| int | $day ) |
Definition at line 206 of file php_date.stub.php.
| date_default_timezone_get | ( | ) |
@refcount 1
Definition at line 262 of file php_date.stub.php.
| date_default_timezone_set | ( | string | $timezoneId | ) |
Definition at line 259 of file php_date.stub.php.
| date_diff | ( | DateTimeInterface | $baseObject, |
| DateTimeInterface | $targetObject, | ||
| bool | $absolute = false ) |
@refcount 1
Definition at line 200 of file php_date.stub.php.
| date_format | ( | DateTimeInterface | $object, |
| string | $format ) |
@refcount 1
Definition at line 184 of file php_date.stub.php.
| date_get_last_errors | ( | ) |
Definition at line 181 of file php_date.stub.php.
| date_interval_create_from_date_string | ( | string | $datetime | ) |
@refcount 1
Definition at line 254 of file php_date.stub.php.
| date_interval_format | ( | DateInterval | $object, |
| string | $format ) |
@refcount 1
Definition at line 257 of file php_date.stub.php.
| date_isodate_set | ( | DateTime | $object, |
| int | $year, | ||
| int | $week, | ||
| int | $dayOfWeek = 1 ) |
Definition at line 208 of file php_date.stub.php.
| date_modify | ( | DateTime | $object, |
| string | $modifier ) |
Definition at line 186 of file php_date.stub.php.
| date_offset_get | ( | DateTimeInterface | $object | ) |
Definition at line 197 of file php_date.stub.php.
| date_parse | ( | string | $datetime | ) |
Definition at line 169 of file php_date.stub.php.
| date_parse_from_format | ( | string | $format, |
| string | $datetime ) |
Definition at line 175 of file php_date.stub.php.
| date_sub | ( | DateTime | $object, |
| DateInterval | $interval ) |
Definition at line 190 of file php_date.stub.php.
| date_sun_info | ( | int | $timestamp, |
| float | $latitude, | ||
| float | $longitude ) |
Definition at line 286 of file php_date.stub.php.
| date_sunrise | ( | int | $timestamp, |
| int | $returnFormat = SUNFUNCS_RET_STRING, | ||
| ?float | $latitude = null, | ||
| ?float | $longitude = null, | ||
| ?float | $zenith = null, | ||
| ?float | $utcOffset = null ) |
@refcount 1
Definition at line 268 of file php_date.stub.php.
| date_sunset | ( | int | $timestamp, |
| int | $returnFormat = SUNFUNCS_RET_STRING, | ||
| ?float | $latitude = null, | ||
| ?float | $longitude = null, | ||
| ?float | $zenith = null, | ||
| ?float | $utcOffset = null ) |
@refcount 1
Definition at line 277 of file php_date.stub.php.
| date_time_set | ( | DateTime | $object, |
| int | $hour, | ||
| int | $minute, | ||
| int | $second = 0, | ||
| int | $microsecond = 0 ) |
Definition at line 203 of file php_date.stub.php.
| date_timestamp_get | ( | DateTimeInterface | $object | ) |
Definition at line 212 of file php_date.stub.php.
| date_timestamp_set | ( | DateTime | $object, |
| int | $timestamp ) |
Definition at line 210 of file php_date.stub.php.
| date_timezone_get | ( | DateTimeInterface | $object | ) |
@refcount 1
Definition at line 193 of file php_date.stub.php.
| date_timezone_set | ( | DateTime | $object, |
| DateTimeZone | $timezone ) |
Definition at line 195 of file php_date.stub.php.
| getdate | ( | ?int | $timestamp = null | ) |
Definition at line 148 of file php_date.stub.php.
| gmdate | ( | string | $format, |
| ?int | $timestamp = null ) |
@refcount 1
Definition at line 112 of file php_date.stub.php.
| gmmktime | ( | int | $hour, |
| ?int | $minute = null, | ||
| ?int | $second = null, | ||
| ?int | $month = null, | ||
| ?int | $day = null, | ||
| ?int | $year = null ) |
Definition at line 118 of file php_date.stub.php.
| gmstrftime | ( | string | $format, |
| ?int | $timestamp = null ) |
@refcount 1
Definition at line 134 of file php_date.stub.php.
| idate | ( | string | $format, |
| ?int | $timestamp = null ) |
Definition at line 109 of file php_date.stub.php.
| localtime | ( | ?int | $timestamp = null, |
| bool | $associative = false ) |
Definition at line 142 of file php_date.stub.php.
| mktime | ( | int | $hour, |
| ?int | $minute = null, | ||
| ?int | $second = null, | ||
| ?int | $month = null, | ||
| ?int | $day = null, | ||
| ?int | $year = null ) |
Definition at line 114 of file php_date.stub.php.
| strftime | ( | string | $format, |
| ?int | $timestamp = null ) |
@refcount 1
Definition at line 128 of file php_date.stub.php.
| strtotime | ( | string | $datetime, |
| ?int | $baseTimestamp = null ) |
Definition at line 104 of file php_date.stub.php.
| time | ( | ) |
Definition at line 136 of file php_date.stub.php.
| timezone_abbreviations_list | ( | ) |
Definition at line 248 of file php_date.stub.php.
| timezone_identifiers_list | ( | int | $timezoneGroup = DateTimeZone::ALL, |
| ?string | $countryCode = null ) |
Definition at line 242 of file php_date.stub.php.
| timezone_location_get | ( | DateTimeZone | $object | ) |
Definition at line 236 of file php_date.stub.php.
| timezone_name_from_abbr | ( | string | $abbr, |
| int | $utcOffset = -1, | ||
| int | $isDST = -1 ) |
@refcount 1
Definition at line 221 of file php_date.stub.php.
| timezone_name_get | ( | DateTimeZone | $object | ) |
@refcount 1
Definition at line 218 of file php_date.stub.php.
| timezone_offset_get | ( | DateTimeZone | $object, |
| DateTimeInterface | $datetime ) |
Definition at line 223 of file php_date.stub.php.
| timezone_open | ( | string | $timezone | ) |
@refcount 1
Definition at line 215 of file php_date.stub.php.
| timezone_transitions_get | ( | DateTimeZone | $object, |
| int | $timestampBegin = PHP_INT_MIN, | ||
| int | $timestampEnd = PHP_INT_MAX ) |
Definition at line 229 of file php_date.stub.php.
| timezone_version_get | ( | ) |
@refcount 1
Definition at line 251 of file php_date.stub.php.
| const DATE_ATOM = "Y-m-d\\TH:i:sP" |
Definition at line 9 of file php_date.stub.php.
| const DATE_COOKIE = "l, d-M-Y H:i:s T" |
Definition at line 15 of file php_date.stub.php.
| const DATE_ISO8601 = "Y-m-d\\TH:i:sO" |
Definition at line 21 of file php_date.stub.php.
| const DATE_ISO8601_EXPANDED = "X-m-d\\TH:i:sP" |
Definition at line 27 of file php_date.stub.php.
| const DATE_RFC1036 = "D, d M y H:i:s O" |
Definition at line 45 of file php_date.stub.php.
| const DATE_RFC1123 = "D, d M Y H:i:s O" |
Definition at line 51 of file php_date.stub.php.
| const DATE_RFC2822 = "D, d M Y H:i:s O" |
Definition at line 63 of file php_date.stub.php.
| const DATE_RFC3339 = "Y-m-d\\TH:i:sP" |
Definition at line 69 of file php_date.stub.php.
| const DATE_RFC3339_EXTENDED = "Y-m-d\\TH:i:s.vP" |
Definition at line 75 of file php_date.stub.php.
| const DATE_RFC7231 = "D, d M Y H:i:s \\G\\M\\T" |
Definition at line 57 of file php_date.stub.php.
| const DATE_RFC822 = "D, d M y H:i:s O" |
Definition at line 33 of file php_date.stub.php.
| const DATE_RFC850 = "l, d-M-y H:i:s T" |
Definition at line 39 of file php_date.stub.php.
| const DATE_RSS = DATE_RFC1123 |
Definition at line 78 of file php_date.stub.php.
| const DATE_W3C = DATE_RFC3339 |
Definition at line 81 of file php_date.stub.php.
| const SUNFUNCS_RET_DOUBLE = UNKNOWN |
Definition at line 102 of file php_date.stub.php.
| const SUNFUNCS_RET_STRING = UNKNOWN |
Definition at line 95 of file php_date.stub.php.
| const SUNFUNCS_RET_TIMESTAMP = UNKNOWN |
Definition at line 88 of file php_date.stub.php.