code
stringlengths
31
1.39M
docstring
stringlengths
23
16.8k
func_name
stringlengths
1
126
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
166
url
stringlengths
50
220
license
stringclasses
7 values
#[Pure] function ctype_upper(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text) : bool { }
Check for uppercase character(s) @link https://php.net/manual/en/function.ctype-upper.php @param string $text <p> The tested string. </p> @return bool <b>TRUE</b> if every character in <i>text</i> is an uppercase letter in the current locale.
ctype_upper
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/ctype/ctype.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/ctype/ctype.php
MIT
#[Pure] function ctype_xdigit(#[LanguageLevelTypeAware(['8.1' => 'string'], default: 'mixed')] mixed $text) : bool { }
Check for character(s) representing a hexadecimal digit @link https://php.net/manual/en/function.ctype-xdigit.php @param string $text <p> The tested string. </p> @return bool <b>TRUE</b> if every character in <i>text</i> is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , <b>FALSE</b> otherwise.
ctype_xdigit
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/ctype/ctype.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/ctype/ctype.php
MIT
#[Pure] #[TentativeType] public function getFilename() : string { }
Get file name @link https://secure.php.net/manual/en/curlfile.getfilename.php @return string Returns file name. @since 5.5
getFilename
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] #[TentativeType] public function getMimeType() : string { }
Get MIME type @link https://secure.php.net/manual/en/curlfile.getmimetype.php @return string Returns MIME type. @since 5.5
getMimeType
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] #[TentativeType] public function getPostFilename() : string { }
Get file name for POST @link https://secure.php.net/manual/en/curlfile.getpostfilename.php @return string Returns file name for POST. @since 5.5
getPostFilename
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[TentativeType] public function setMimeType(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $mime_type) : void { }
Set MIME type @link https://secure.php.net/manual/en/curlfile.setmimetype.php @param string $mime_type @since 5.5
setMimeType
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[TentativeType] public function setPostFilename(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $posted_filename) : void { }
Set file name for POST https://secure.php.net/manual/en/curlfile.setpostfilename.php @param string $posted_filename @since 5.5
setPostFilename
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[LanguageLevelTypeAware(['8.0' => 'CurlHandle|false'], default: 'resource|false')] function curl_init(?string $url) { }
Initialize a cURL session @link https://php.net/manual/en/function.curl-init.php @param string|null $url [optional] <p> If provided, the CURLOPT_URL option will be set to its value. You can manually set this using the curl_setopt function. </p> @return resource|false|CurlHandle a cURL handle on success, false on errors.
curl_init
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] #[LanguageLevelTypeAware(['8.0' => 'CurlHandle|false'], default: 'resource|false')] function curl_copy_handle(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) { }
Copy a cURL handle along with all of its preferences @link https://php.net/manual/en/function.curl-copy-handle.php @param CurlHandle|resource $handle @return CurlHandle|resource|false a new cURL handle.
curl_copy_handle
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[ArrayShape(["version_number" => "string", "version" => "string", "ssl_version_number" => "int", "ssl_version" => "string", "libz_version" => "string", "host" => "string", "age" => "int", "features" => "int", "protocols" => "array"])] #[Pure] function curl_version(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $age = null) : array|false { }
Gets cURL version information @link https://php.net/manual/en/function.curl-version.php @param int $age [optional] Removed since version PHP 8.0. @return array|false an associative array with the following elements: <tr valign="top"> <td>Indice</td> <td>Value description</td> </tr> <tr valign="top"> <td>version_number</td> <td>cURL 24 bit version number</td> </tr> <tr valign="top"> <td>version</td> <td>cURL version number, as a string</td> </tr> <tr valign="top"> <td>ssl_version_number</td> <td>OpenSSL 24 bit version number</td> </tr> <tr valign="top"> <td>ssl_version</td> <td>OpenSSL version number, as a string</td> </tr> <tr valign="top"> <td>libz_version</td> <td>zlib version number, as a string</td> </tr> <tr valign="top"> <td>host</td> <td>Information about the host where cURL was built</td> </tr> <tr valign="top"> <td>age</td> <td></td> </tr> <tr valign="top"> <td>features</td> <td>A bitmask of the CURL_VERSION_XXX constants</td> </tr> <tr valign="top"> <td>protocols</td> <td>An array of protocols names supported by cURL</td> </tr>
curl_version
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] function curl_share_init() { }
(PHP 5 &gt;=5.5.0)<br/> Initialize a cURL share handle @link https://secure.php.net/manual/en/function.curl-share-init.php @return resource|CurlShareHandle Returns resource of type "cURL Share Handle". @since 5.5
curl_share_init
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_strerror(int $error_code) : ?string { }
(PHP 5 &gt;=5.5.0)<br/> Return string describing the given error code @link https://secure.php.net/manual/en/function.curl-strerror.php @param int $error_code <p> One of the {@link https://curl.haxx.se/libcurl/c/libcurl-errors.html &nbsp;cURL error codes} constants. </p> @return string|null Returns error description or <b>NULL</b> for invalid error code. @since 5.5
curl_strerror
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_unescape(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle, string $string) : string|false { }
(PHP 5 &gt;=5.5.0)<br/> Decodes the given URL encoded string @link https://secure.php.net/manual/en/function.curl-unescape.php @param CurlHandle|resource $handle <p>A cURL handle returned by {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p> @param string $string <p> The URL encoded string to be decoded. </p> @return string|false Returns decoded string or FALSE on failure. @since 5.5
curl_unescape
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function curl_getinfo(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle, ?int $option) : mixed { }
Get information regarding a specific transfer @link https://php.net/manual/en/function.curl-getinfo.php @param CurlHandle|resource $handle @param int|null $option [optional] <p> This may be one of the following constants: <ul> <li> <strong><code class="code">CURLINFO_EFFECTIVE_URL</code></strong> - Last effective URL </li> <li> <strong><code class="code">CURLINFO_HTTP_CODE</code></strong> - The last response code. As of cURL 7.10.8, this is a legacy alias of <strong><code class="code">CURLINFO_RESPONSE_CODE</code> </strong> </li> <li> <strong><code class="code">CURLINFO_FILETIME</code></strong> - Remote time of the retrieved document, with the <strong><code class="code">CURLOPT_FILETIME</code> </strong> enabled; if -1 is returned the time of the document is unknown </li> <li> <strong><code class="code">CURLINFO_TOTAL_TIME</code></strong> - Total transaction time in seconds for last transfer </li> <li> <strong><code class="code">CURLINFO_NAMELOOKUP_TIME</code></strong> - Time in seconds until name resolving was complete </li> <li> <strong><code class="code">CURLINFO_CONNECT_TIME</code></strong> - Time in seconds it took to establish the connection </li> <li> <strong><code class="code">CURLINFO_PRETRANSFER_TIME</code></strong> - Time in seconds from start until just before file transfer begins </li> <li> <strong><code class="code">CURLINFO_STARTTRANSFER_TIME</code></strong> - Time in seconds until the first byte is about to be transferred </li> <li> <strong><code class="code">CURLINFO_REDIRECT_COUNT</code></strong> - Number of redirects, with the <strong><code class="code">CURLOPT_FOLLOWLOCATION</code> </strong> option enabled </li> <li> <strong><code class="code">CURLINFO_REDIRECT_TIME</code></strong> - Time in seconds of all redirection steps before final transaction was started, with the <strong><code class="code">CURLOPT_FOLLOWLOCATION</code> </strong> option enabled </li> <li> <strong><code class="code">CURLINFO_REDIRECT_URL</code></strong> - With the <strong><code class="code">CURLOPT_FOLLOWLOCATION</code> </strong> option disabled: redirect URL found in the last transaction, that should be requested manually next. With the <strong><code class="code">CURLOPT_FOLLOWLOCATION</code> </strong> option enabled: this is empty. The redirect URL in this case is available in <strong><code class="code">CURLINFO_EFFECTIVE_URL</code> </strong> </li> <li> <strong><code class="code">CURLINFO_PRIMARY_IP</code></strong> - IP address of the most recent connection </li> <li> <strong><code class="code">CURLINFO_PRIMARY_PORT</code></strong> - Destination port of the most recent connection </li> <li> <strong><code class="code">CURLINFO_LOCAL_IP</code></strong> - Local (source) IP address of the most recent connection </li> <li> <strong><code class="code">CURLINFO_LOCAL_PORT</code></strong> - Local (source) port of the most recent connection </li> <li> <strong><code class="code">CURLINFO_SIZE_UPLOAD</code></strong> - Total number of bytes uploaded </li> <li> <strong><code class="code">CURLINFO_SIZE_DOWNLOAD</code></strong> - Total number of bytes downloaded </li> <li> <strong><code class="code">CURLINFO_SPEED_DOWNLOAD</code></strong> - Average download speed </li> <li> <strong><code class="code">CURLINFO_SPEED_UPLOAD</code></strong> - Average upload speed </li> <li> <strong><code class="code">CURLINFO_HEADER_SIZE</code></strong> - Total size of all headers received </li> <li> <strong><code class="code">CURLINFO_HEADER_OUT</code></strong> - The request string sent. For this to work, add the <strong><code class="code">CURLINFO_HEADER_OUT</code> </strong> option to the handle by calling curl_setopt() </li> <li> <strong><code class="code">CURLINFO_REQUEST_SIZE</code></strong> - Total size of issued requests, currently only for HTTP requests </li> <li> <strong><code class="code">CURLINFO_SSL_VERIFYRESULT</code></strong> - Result of SSL certification verification requested by setting <strong><code class="code">CURLOPT_SSL_VERIFYPEER</code> </strong> </li> <li> <strong><code class="code">CURLINFO_CONTENT_LENGTH_DOWNLOAD</code></strong> - Content length of download, read from <code class="code">Content-Length:</code> field </li> <li> <strong><code class="code">CURLINFO_CONTENT_LENGTH_UPLOAD</code></strong> - Specified size of upload </li> <li> <strong><code class="code">CURLINFO_CONTENT_TYPE</code> </strong> - <code class="code">Content-Type:</code> of the requested document. NULL indicates server did not send valid <code class="code">Content-Type:</code> header </li> <li> <strong><code class="code">CURLINFO_PRIVATE</code></strong> - Private data associated with this cURL handle, previously set with the <strong><code class="code">CURLOPT_PRIVATE</code> </strong> option of curl_setopt() </li> <li> <strong><code class="code">CURLINFO_RESPONSE_CODE</code></strong> - The last response code </li> <li> <strong><code class="code">CURLINFO_HTTP_CONNECTCODE</code></strong> - The CONNECT response code </li> <li> <strong><code class="code">CURLINFO_HTTPAUTH_AVAIL</code></strong> - Bitmask indicating the authentication method(s) available according to the previous response </li> <li> <strong><code class="code">CURLINFO_PROXYAUTH_AVAIL</code></strong> - Bitmask indicating the proxy authentication method(s) available according to the previous response </li> <li> <strong><code class="code">CURLINFO_OS_ERRNO</code></strong> - Errno from a connect failure. The number is OS and system specific. </li> <li> <strong><code class="code">CURLINFO_NUM_CONNECTS</code></strong> - Number of connections curl had to create to achieve the previous transfer </li> <li> <strong><code class="code">CURLINFO_SSL_ENGINES</code></strong> - OpenSSL crypto-engines supported </li> <li> <strong><code class="code">CURLINFO_COOKIELIST</code></strong> - All known cookies </li> <li> <strong><code class="code">CURLINFO_FTP_ENTRY_PATH</code></strong> - Entry path in FTP server </li> <li> <strong><code class="code">CURLINFO_APPCONNECT_TIME</code></strong> - Time in seconds it took from the start until the SSL/SSH connect/handshake to the remote host was completed </li> <li> <strong><code class="code">CURLINFO_CERTINFO</code></strong> - TLS certificate chain </li> <li> <strong><code class="code">CURLINFO_CONDITION_UNMET</code></strong> - Info on unmet time conditional </li> <li> <strong><code class="code">CURLINFO_RTSP_CLIENT_CSEQ</code></strong> - Next RTSP client CSeq </li> <li> <strong><code class="code">CURLINFO_RTSP_CSEQ_RECV</code></strong> - Recently received CSeq </li> <li> <strong><code class="code">CURLINFO_RTSP_SERVER_CSEQ</code></strong> - Next RTSP server CSeq </li> <li> <strong><code class="code">CURLINFO_RTSP_SESSION_ID</code></strong> - RTSP session ID </li> <li> <strong><code class="code">CURLINFO_CONTENT_LENGTH_DOWNLOAD_T</code></strong> - The content-length of the download. This is the value read from the <code class="code">Content-Type:</code> field. -1 if the size isn't known </li> <li> <strong><code class="code">CURLINFO_CONTENT_LENGTH_UPLOAD_T</code></strong> - The specified size of the upload. -1 if the size isn't known </li> <li> <strong><code class="code">CURLINFO_HTTP_VERSION</code></strong> - The version used in the last HTTP connection. The return value will be one of the defined <strong><code class="code">CURL_HTTP_VERSION_*</code> </strong> constants or 0 if the version can't be determined </li> <li> <strong><code class="code">CURLINFO_PROTOCOL</code></strong> - The protocol used in the last HTTP connection. The returned value will be exactly one of the <strong><code class="code">CURLPROTO_*</code> </strong> values </li> <li> <strong><code class="code">CURLINFO_PROXY_SSL_VERIFYRESULT</code></strong> - The result of the certificate verification that was requested (using the <strong><code class="code">CURLOPT_PROXY_SSL_VERIFYPEER</code> </strong> option). Only used for HTTPS proxies </li> <li> <strong><code class="code">CURLINFO_SCHEME</code></strong> - The URL scheme used for the most recent connection </li> <li> <strong><code class="code">CURLINFO_SIZE_DOWNLOAD_T</code></strong> - Total number of bytes that were downloaded. The number is only for the latest transfer and will be reset again for each new transfer </li> <li> <strong><code class="code">CURLINFO_SIZE_UPLOAD_T</code></strong> - Total number of bytes that were uploaded </li> <li> <strong><code class="code">CURLINFO_SPEED_DOWNLOAD_T</code></strong> - The average download speed in bytes/second that curl measured for the complete download </li> <li> <strong><code class="code">CURLINFO_SPEED_UPLOAD_T</code></strong> - The average upload speed in bytes/second that curl measured for the complete upload </li> <li> <strong><code class="code">CURLINFO_APPCONNECT_TIME_T</code></strong> - Time, in microseconds, it took from the start until the SSL/SSH connect/handshake to the remote host was completed </li> <li> <strong><code class="code">CURLINFO_CONNECT_TIME_T</code></strong> - Total time taken, in microseconds, from the start until the connection to the remote host (or proxy) was completed </li> <li> <strong><code class="code">CURLINFO_FILETIME_T</code></strong> - Remote time of the retrieved document (as Unix timestamp), an alternative to <strong><code class="code">CURLINFO_FILETIME</code> </strong> to allow systems with 32 bit long variables to extract dates outside of the 32bit timestamp range </li> <li> <strong><code class="code">CURLINFO_NAMELOOKUP_TIME_T</code></strong> - Time in microseconds from the start until the name resolving was completed </li> <li> <strong><code class="code">CURLINFO_PRETRANSFER_TIME_T</code></strong> - Time taken from the start until the file transfer is just about to begin, in microseconds </li> <li> <strong><code class="code">CURLINFO_REDIRECT_TIME_T</code></strong> - Total time, in microseconds, it took for all redirection steps include name lookup, connect, pretransfer and transfer before final transaction was started </li> <li> <strong><code class="code">CURLINFO_STARTTRANSFER_TIME_T</code></strong> - Time, in microseconds, it took from the start until the first byte is received </li> <li> <strong><code class="code">CURLINFO_TOTAL_TIME_T</code></strong> - Total time in microseconds for the previous transfer, including name resolving, TCP connect etc. </ul> @return mixed If <em><code class="parameter">$option</code></em> is given, returns its value as a string. Otherwise, returns an associative array with the following elements (which correspond to <em><code class="parameter">$option</code></em>), or false on failure: <ul> <li>url</li> <li>content_type</li> <li>http_code</li> <li>header_size</li> <li>request_size</li> <li>filetime</li> <li>ssl_verify_result</li> <li>redirect_count</li> <li>total_time</li> <li>namelookup_time</li> <li>connect_time</li> <li>pretransfer_time</li> <li>size_upload</li> <li>size_download</li> <li>speed_download</li> <li>speed_upload</li> <li>download_content_length</li> <li>upload_content_length</li> <li>starttransfer_time</li> <li>redirect_time</li> <li>certinfo</li> <li>primary_ip</li> <li>primary_port</li> <li>local_ip</li> <li>local_port</li> <li>redirect_url</li> <li>request_header (This is only set if the <strong><code>CURLINFO_HEADER_OUT</code> </strong> is set by a previous call to curl_setopt() </li> </ul>
curl_getinfo
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function curl_error(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) : string { }
Return a string containing the last error for the current session @link https://php.net/manual/en/function.curl-error.php @param CurlHandle|resource $handle @return string the error message or '' (the empty string) if no error occurred.
curl_error
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function curl_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) : int { }
Return the last error number @link https://php.net/manual/en/function.curl-errno.php @param CurlHandle|resource $handle @return int the error number or 0 (zero) if no error occurred.
curl_errno
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_escape(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle, string $string) : string|false { }
URL encodes the given string @link https://secure.php.net/manual/en/function.curl-escape.php @param CurlHandle|resource $handle <p> A cURL handle returned by {@link https://secure.php.net/manual/en/function.curl-init.php curl_init()}.</p> @param string $string <p> The string to be encoded.</p> @return string|false Returns escaped string or FALSE on failure. @since 5.5
curl_escape
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null) : \CURLFile { }
(PHP 5 >= 5.5.0) <br/> Create a CURLFile object @link https://secure.php.net/manual/en/curlfile.construct.php @param string $filename <p> Path to the file which will be uploaded.</p> @param string|null $mime_type <p>Mimetype of the file.</p> @param string|null $posted_filename <p>Name of the file.</p> @return CURLFile Returns a {@link https://secure.php.net/manual/en/class.curlfile.php CURLFile} object. @since 5.5
curl_file_create
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] function curl_multi_init() : \CurlMultiHandle { }
Returns a new cURL multi handle @link https://php.net/manual/en/function.curl-multi-init.php @return resource|CurlMultiHandle a cURL multi handle resource or object depends on the php version
curl_multi_init
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[LanguageLevelTypeAware(['8.0' => 'int'], default: 'int|false')] function curl_multi_remove_handle(#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle, #[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) { }
Remove a multi handle from a set of cURL handles @link https://php.net/manual/en/function.curl-multi-remove-handle.php @param CurlMultiHandle|resource $multi_handle @param CurlHandle|resource $handle @return int|false On success, returns one of the CURLM_XXX error codes, false on failure.
curl_multi_remove_handle
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_multi_getcontent(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle) : ?string { }
Return the content of a cURL handle if <constant>CURLOPT_RETURNTRANSFER</constant> is set @link https://php.net/manual/en/function.curl-multi-getcontent.php @param CurlHandle|resource $handle @return null|string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
curl_multi_getcontent
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] #[ArrayShape(["msg" => "int", "result" => "int", "handle" => "resource"])] function curl_multi_info_read(#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle, &$queued_messages) : array|false { }
Get information about the current transfers @link https://php.net/manual/en/function.curl-multi-info-read.php @param CurlMultiHandle|resource $multi_handle @param int &$queued_messages [optional] <p> Number of messages that are still in the queue </p> @return array|false On success, returns an associative array for the message, false on failure.
curl_multi_info_read
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function curl_multi_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlMultiHandle'], default: 'resource')] $multi_handle) : int { }
Return the last multi curl error number @param CurlMultiHandle|resource $multi_handle @return int @since 7.1
curl_multi_errno
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function curl_share_errno(#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] $share_handle) : int { }
Return the last share curl error number @param CurlMultiHandle|resource $share_handle @return int @since 7.1
curl_share_errno
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure] function curl_share_strerror(int $error_code) : ?string { }
Return string describing the given error code @param int $error_code @return string|null @since 7.1
curl_share_strerror
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/curl/curl.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/curl/curl.php
MIT
#[Pure(\true)] function strtotime(string $datetime, ?int $baseTimestamp) : int|false { }
Parse about any English textual datetime description into a Unix timestamp @link https://php.net/manual/en/function.strtotime.php @param string $datetime <p> The string to parse. Before PHP 5.0.0, microseconds weren't allowed in the time, since PHP 5.0.0 they are allowed but ignored. </p> @param int|null $baseTimestamp [optional] <p> Default value: null The timestamp which is used as a base for the calculation of relative dates. </p> @return int|false a timestamp on success, false otherwise. Previous to PHP 5.1.0, this function would return -1 on failure.
strtotime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function idate(string $format, ?int $timestamp) : int|false { }
Format a local time/date as integer @link https://php.net/manual/en/function.idate.php @param string $format <p> <table> The following characters are recognized in the format parameter string <tr valign="top"> <td>format character</td> <td>Description</td> </tr> <tr valign="top"> <td>B</td> <td>Swatch Beat/Internet Time</td> </tr> <tr valign="top"> <td>d</td> <td>Day of the month</td> </tr> <tr valign="top"> <td>h</td> <td>Hour (12 hour format)</td> </tr> <tr valign="top"> <td>H</td> <td>Hour (24 hour format)</td> </tr> <tr valign="top"> <td>i</td> <td>Minutes</td> </tr> <tr valign="top"> <td>I (uppercase i)</td> <td>returns 1 if DST is activated, 0 otherwise</td> </tr> <tr valign="top"> <td>L (uppercase l)</td> <td>returns 1 for leap year, 0 otherwise</td> </tr> <tr valign="top"> <td>m</td> <td>Month number</td> </tr> <tr valign="top"> <td>s</td> <td>Seconds</td> </tr> <tr valign="top"> <td>t</td> <td>Days in current month</td> </tr> <tr valign="top"> <td>U</td> <td>Seconds since the Unix Epoch - January 1 1970 00:00:00 UTC - this is the same as time</td> </tr> <tr valign="top"> <td>w</td> <td>Day of the week (0 on Sunday)</td> </tr> <tr valign="top"> <td>W</td> <td>ISO-8601 week number of year, weeks starting on Monday</td> </tr> <tr valign="top"> <td>y</td> <td>Year (1 or 2 digits - check note below)</td> </tr> <tr valign="top"> <td>Y</td> <td>Year (4 digits)</td> </tr> <tr valign="top"> <td>z</td> <td>Day of the year</td> </tr> <tr valign="top"> <td>Z</td> <td>Timezone offset in seconds</td> </tr> </table> </p> @param int|null $timestamp [optional] Default value: time(). The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. @return int|false an integer. <p> As idate always returns an integer and as they can't start with a "0", idate may return fewer digits than you would expect. See the example below. </p>
idate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function gmmktime(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] int $hour = null, #[PhpStormStubsElementAvailable(from: '8.0')] int $hour, ?int $minute = null, ?int $second = null, ?int $month = null, ?int $day = null, ?int $year = null, #[PhpStormStubsElementAvailable(from: '5.5', to: '5.6')] $is_dst = null) : int|false { }
Get Unix timestamp for a GMT date @link https://php.net/manual/en/function.gmmktime.php @param int $hour <p> The hour </p> @param int $minute <p> The minute </p> @param int $second <p> The second </p> @param int $month <p> The month </p> @param int $day <p> The day </p> @param int $year <p> The year </p> @param int $is_dst <p> Parameters always represent a GMT date so is_dst doesn't influence the result. </p> @return int|false a integer Unix timestamp.
gmmktime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function checkdate(int $month, int $day, int $year) : bool { }
Validate a Gregorian date @link https://php.net/manual/en/function.checkdate.php @param int $month <p> The month is between 1 and 12 inclusive. </p> @param int $day <p> The day is within the allowed number of days for the given month. Leap years are taken into consideration. </p> @param int $year <p> The year is between 1 and 32767 inclusive. </p> @return bool true if the date given is valid; otherwise returns false.
checkdate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Deprecated(since: '8.1')] function strftime(string $format, ?int $timestamp) : string|false { }
Format a local time/date according to locale settings The following characters are recognized in the format parameter string <table> <tr valign="top" colspan="3" bgcolor="silver"> <th>format</th> <th>Description</th> <th>Example returned values</th> <th> Day</th> </tr> <tr valign="top"> <td>%a</td> <td>An abbreviated textual representation of the day</td> <td>Sun through Sat</td> </tr> <tr valign="top"> <td>%A</td> <td>A full textual representation of the day</td> <td>Sunday through Saturday</td> </tr> <tr valign="top"> <td>%d</td> <td>Two-digit day of the month (with leading zeros)</td> <td>01 to 31</td> </tr> <tr valign="top"> <td>%e</td> <td>Day of the month, with a space preceding single digits</td> <td> 1 to 31</td> </tr> <tr valign="top"> <td>%j</td> <td>Day of the year, 3 digits with leading zeros</td> <td>001 to 366</td> </tr> <tr valign="top"> <td>%u</td> <td>ISO-8601 numeric representation of the day of the week</td> <td>1 (for Monday) though 7 (for Sunday)</td> </tr> <tr valign="top"> <td>%w</td> <td>Numeric representation of the day of the week</td> <td>0 (for Sunday) through 6 (for Saturday)</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Week</th> </tr> <tr valign="top"> <td>%U</td> <td>Week number of the given year, starting with the first Sunday as the first week</td> <td>13 (for the 13th full week of the year)</td> </tr> <tr valign="top"> <td>%V</td> <td>ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week</td> <td>01 through 53 (where 53 accounts for an overlapping week)</td> </tr> <tr valign="top"> <td>%W</td> <td>A numeric representation of the week of the year, starting with the first Monday as the first week</td> <td>46 (for the 46th week of the year beginning with a Monday)</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Month</th> </tr> <tr valign="top"> <td>%b</td> <td>Abbreviated month name, based on the locale</td> <td>Jan through Dec</td> </tr> <tr valign="top"> <td>%B</td> <td>Full month name, based on the locale</td> <td>January through December</td> </tr> <tr valign="top"> <td>%h</td> <td>Abbreviated month name, based on the locale (an alias of %b)</td> <td>Jan through Dec</td> </tr> <tr valign="top"> <td>%m</td> <td>Two digit representation of the month</td> <td>01 (for January) through 12 (for December)</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Year</th> </tr> <tr valign="top"> <td>%C</td> <td>Two digit representation of the century (year divided by 100, truncated to an integer)</td> <td>19 for the 20th Century</td> </tr> <tr valign="top"> <td>%g</td> <td>Two digit representation of the year going by ISO-8601:1988 standards (see %V)</td> <td>Example: 09 for the week of January 6, 2009</td> </tr> <tr valign="top"> <td>%G</td> <td>The full four-digit version of %g</td> <td>Example: 2008 for the week of January 3, 2009</td> </tr> <tr valign="top"> <td>%y</td> <td>Two digit representation of the year</td> <td>Example: 09 for 2009, 79 for 1979</td> </tr> <tr valign="top"> <td>%Y</td> <td>Four digit representation for the year</td> <td>Example: 2038</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Time</th> </tr> <tr valign="top"> <td>%H</td> <td>Two digit representation of the hour in 24-hour format</td> <td>00 through 23</td> </tr> <tr valign="top"> <td>%I</td> <td>Two digit representation of the hour in 12-hour format</td> <td>01 through 12</td> </tr> <tr valign="top"> <td>%l (lower-case 'L')</td> <td>Hour in 12-hour format, with a space preceding single digits</td> <td> 1 through 12</td> </tr> <tr valign="top"> <td>%M</td> <td>Two digit representation of the minute</td> <td>00 through 59</td> </tr> <tr valign="top"> <td>%p</td> <td>UPPER-CASE 'AM' or 'PM' based on the given time</td> <td>Example: AM for 00:31, PM for 22:23</td> </tr> <tr valign="top"> <td>%P</td> <td>lower-case 'am' or 'pm' based on the given time</td> <td>Example: am for 00:31, pm for 22:23</td> </tr> <tr valign="top"> <td>%r</td> <td>Same as "%I:%M:%S %p"</td> <td>Example: 09:34:17 PM for 21:34:17</td> </tr> <tr valign="top"> <td>%R</td> <td>Same as "%H:%M"</td> <td>Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM</td> </tr> <tr valign="top"> <td>%S</td> <td>Two digit representation of the second</td> <td>00 through 59</td> </tr> <tr valign="top"> <td>%T</td> <td>Same as "%H:%M:%S"</td> <td>Example: 21:34:17 for 09:34:17 PM</td> </tr> <tr valign="top"> <td>%X</td> <td>Preferred time representation based on locale, without the date</td> <td>Example: 03:59:16 or 15:59:16</td> </tr> <tr valign="top"> <td>%z</td> <td>Either the time zone offset from UTC or the abbreviation (depends on operating system)</td> <td>Example: -0500 or EST for Eastern Time</td> </tr> <tr valign="top"> <td>%Z</td> <td>The time zone offset/abbreviation option NOT given by %z (depends on operating system)</td> <td>Example: -0500 or EST for Eastern Time</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Time and Date Stamps</th> </tr> <tr valign="top"> <td>%c</td> <td>Preferred date and time stamp based on local</td> <td>Example: Tue Feb 5 00:45:10 2009 for February 4, 2009 at 12:45:10 AM</td> </tr> <tr valign="top"> <td>%D</td> <td>Same as "%m/%d/%y"</td> <td>Example: 02/05/09 for February 5, 2009</td> </tr> <tr valign="top"> <td>%F</td> <td>Same as "%Y-%m-%d" (commonly used in database datestamps)</td> <td>Example: 2009-02-05 for February 5, 2009</td> </tr> <tr valign="top"> <td>%s</td> <td>Unix Epoch Time timestamp (same as the time function)</td> <td>Example: 305815200 for September 10, 1979 08:40:00 AM</td> </tr> <tr valign="top"> <td>%x</td> <td>Preferred date representation based on locale, without the time</td> <td>Example: 02/05/09 for February 5, 2009</td> </tr> <tr valign="top"> <th colspan="3" bgcolor="silver">Miscellaneous</th> </tr> <tr valign="top"> <td>%n</td> <td>A newline character ("\n")</td> <td>---</td> </tr> <tr valign="top"> <td>%t</td> <td>A Tab character ("\t")</td> <td>---</td> </tr> <tr valign="top"> <td>%%</td> <td>A literal percentage character ("%")</td> <td>---</td> </tr> </table> <p> Maximum length of this parameter is 1023 characters. </p> Contrary to ISO-9899:1999, Sun Solaris starts with Sunday as 1. As a result, %u may not function as described in this manual. @link https://php.net/manual/en/function.strftime.php @param string $format @param int|null $timestamp [optional] defaults to the value of time() Unix timestamp that defaults to the current local time if a timestamp is not given.. @return string|false a string formatted according format using the given timestamp or the current local time if no timestamp is given. Month and weekday names and other language-dependent strings respect the current locale set with setlocale. @deprecated 8.1
strftime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Deprecated(since: '8.1')] function gmstrftime(string $format, ?int $timestamp) : string|false { }
Format a GMT/UTC time/date according to locale settings @link https://php.net/manual/en/function.gmstrftime.php @param string $format <p> See description in strftime. </p> @param int|null $timestamp [optional] @return string|false a string formatted according to the given format string using the given timestamp or the current local time if no timestamp is given. Month and weekday names and other language dependent strings respect the current locale set with setlocale. @deprecated 8.1
gmstrftime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[ArrayShape(['tm_sec' => 'int', 'tm_min' => 'int', 'tm_hour' => 'int', 'tm_mday' => 'int', 'tm_mon' => 'int', 'tm_year' => 'int', 'tm_wday' => 'int', 'tm_yday' => 'int', 'tm_isdst' => 'int'])] function localtime(?int $timestamp, bool $associative = \false) : array { }
Get the local time @link https://php.net/manual/en/function.localtime.php @param int|null $timestamp [optional] @param bool $associative [optional] <p> If set to false or not supplied then the array is returned as a regular, numerically indexed array. If the argument is set to true then localtime returns an associative array containing all the different elements of the structure returned by the C function call to localtime. The names of the different keys of the associative array are as follows: </p> "tm_sec" - seconds @return array
localtime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[ArrayShape(['seconds' => 'int', 'minutes' => 'int', 'hours' => 'int', 'mday' => 'int', 'wday' => 'int', 'mon' => 'int', 'year' => 'int', 'yday' => 'int', 'weekday' => 'int', 'month' => 'string', 0 => 'int'])] function getdate(?int $timestamp) : array { }
Get date/time information @link https://php.net/manual/en/function.getdate.php @param int|null $timestamp [optional] @return array an associative array of information related to the timestamp. Elements from the returned associative array are as follows: </p> <p> <table> Key elements of the returned associative array <tr valign="top"> <td>Key</td> <td>Description</td> <td>Example returned values</td> </tr> <tr valign="top"> <td>"seconds"</td> <td>Numeric representation of seconds</td> <td>0 to 59</td> </tr> <tr valign="top"> <td>"minutes"</td> <td>Numeric representation of minutes</td> <td>0 to 59</td> </tr> <tr valign="top"> <td>"hours"</td> <td>Numeric representation of hours</td> <td>0 to 23</td> </tr> <tr valign="top"> <td>"mday"</td> <td>Numeric representation of the day of the month</td> <td>1 to 31</td> </tr> <tr valign="top"> <td>"wday"</td> <td>Numeric representation of the day of the week</td> <td>0 (for Sunday) through 6 (for Saturday)</td> </tr> <tr valign="top"> <td>"mon"</td> <td>Numeric representation of a month</td> <td>1 through 12</td> </tr> <tr valign="top"> <td>"year"</td> <td>A full numeric representation of a year, 4 digits</td> <td>Examples: 1999 or 2003</td> </tr> <tr valign="top"> <td>"yday"</td> <td>Numeric representation of the day of the year</td> <td>0 through 365</td> </tr> <tr valign="top"> <td>"weekday"</td> <td>A full textual representation of the day of the week</td> <td>Sunday through Saturday</td> </tr> <tr valign="top"> <td>"month"</td> <td>A full textual representation of a month, such as January or March</td> <td>January through December</td> </tr> <tr valign="top"> <td>0</td> <td> Seconds since the Unix Epoch, similar to the values returned by time and used by date. </td> <td> System Dependent, typically -2147483648 through 2147483647. </td> </tr> </table>
getdate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_create(string $datetime = 'now', ?\DateTimeZone $timezone) : \DateTime|false { }
Returns new DateTime object @link https://php.net/manual/en/function.date-create.php @param string $datetime [optional] <p> String in a format accepted by strtotime. </p> @param DateTimeZone|null $timezone [optional] <p> Time zone of the time. </p> @return DateTime|false DateTime object on success or false on failure.
date_create
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_create_immutable(string $datetime = 'now', ?\DateTimeZone $timezone) : \DateTimeImmutable|false { }
(PHP 5.5)<br/> Alias: {@see DateTimeImmutable::__construct} Returns new DateTimeImmutable object @link https://php.net/manual/en/function.date-create-immutable.php @see DateTimeImmutable::__construct() @param string $datetime [optional] <p> String in a format accepted by strtotime. </p> @param DateTimeZone|null $timezone [optional] <p> Time zone of the time. </p> @return DateTimeImmutable|false DateTime object on success or false on failure.
date_create_immutable
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_create_immutable_from_format(string $format, string $datetime, ?\DateTimeZone $timezone) : \DateTimeImmutable|false { }
Returns new DateTimeImmutable object formatted according to the specified format @link https://php.net/manual/en/function.date-create-immutable-from-format.php @param string $format @param string $datetime @param DateTimeZone|null $timezone [optional] @return DateTimeImmutable|false
date_create_immutable_from_format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_create_from_format(string $format, string $datetime, ?\DateTimeZone $timezone) : \DateTime|false { }
Alias: {@see DateTime::createFromFormat} @link https://php.net/manual/en/function.date-create-from-format.php @param string $format Format accepted by <a href="https://secure.php.net/manual/en/function.date.php">date()</a>. <p>If format does not contain the character ! then portions of the generated time which are not specified in format will be set to the current system time.</p> <p>If format contains the character !, then portions of the generated time not provided in format, as well as values to the left-hand side of the !, will be set to corresponding values from the Unix epoch.</p> <p>The Unix epoch is 1970-01-01 00:00:00 UTC.</p> @param string $datetime String representing the time. @param DateTimeZone|null $timezone [optional] A DateTimeZone object representing the desired time zone. @return DateTime|false <p> Returns a new {@see DateTime} instance or <b>FALSE</b> on failure.</p>
date_create_from_format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] #[ArrayShape(["year" => "int", "month" => "int", "day" => "int", "hour" => "int", "minute" => "int", "second" => "int", "fraction" => "double", "is_localtime" => "bool", "zone_type" => "int", "zone" => "int", "is_dst" => "bool", "tz_abbr" => "string", "tz_id" => "string", "relative" => "array", "warning_count" => "int", "warnings" => "array", "error_count" => "int", "errors" => "array"])] function date_parse(string $datetime) : false|array { }
Returns associative array with detailed info about given date @link https://php.net/manual/en/function.date-parse.php @param string $datetime <p> Date in format accepted by strtotime. </p> @return array|false array with information about the parsed date on success or false on failure.
date_parse
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[ArrayShape(['year' => 'int', 'month' => 'int', 'day' => 'int', 'hour' => 'int', 'minute' => 'int', 'second' => 'int', 'fraction' => 'double', 'is_localtime' => 'bool', 'zone_type' => 'int', 'zone' => 'int', 'is_dst' => 'bool', 'tz_abbr' => 'string', 'tz_id' => 'string', 'relative' => 'array', 'warning_count' => 'int', 'warnings' => 'array', 'error_count' => 'int', 'errors' => 'array'])] function date_parse_from_format(string $format, string $datetime) : array { }
Get info about given date formatted according to the specified format @link https://php.net/manual/en/function.date-parse-from-format.php @param string $format <p> Format accepted by date with some extras. </p> @param string $datetime <p> String representing the date. </p> @return array associative array with detailed info about given date.
date_parse_from_format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[ArrayShape(["warning_count" => "int", "warnings" => "string[]", "error_count" => "int", "errors" => "string[]"])] #[Pure(\true)] function date_get_last_errors() : array|false { }
Returns the warnings and errors Alias: {@see DateTime::getLastErrors} @link https://php.net/manual/en/function.date-get-last-errors.php @return array|false <p>Returns array containing info about warnings and errors.</p>
date_get_last_errors
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] function date_format(\DateTimeInterface $object, string $format) { }
Alias: {@see DateTime::format} @link https://php.net/manual/en/function.date-format.php @param DateTimeInterface $object @param string $format @return string|false formatted date string on success or <b>FALSE</b> on failure.
date_format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_add(\DateTime $object, \DateInterval $interval) { }
Alias: {@see DateTime::add} @link https://php.net/manual/en/function.date-add.php @param DateTime $object <p>Procedural style only: A {@see DateTime} object returned by {@see date_create()}. The function modifies this object.</p> @param DateInterval $interval <p>A {@see DateInterval} object</p> @return DateTime|false <p>Returns the {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
date_add
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_sub(\DateTime $object, \DateInterval $interval) { }
Subtracts an amount of days, months, years, hours, minutes and seconds from a datetime object Alias: {@see DateTime::sub} @link https://php.net/manual/en/function.date-sub.php @param DateTime $object Procedural style only: A {@see DateTime} object returned by {@see date_create()}. The function modifies this object. @param DateInterval $interval <p>A {@see DateInterval} object</p> @return DateTime|false <p>Returns the {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
date_sub
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_timezone_get(\DateTimeInterface $object) : \DateTimeZone|false { }
Alias: {@see DateTime::getTimezone} @link https://php.net/manual/en/function.date-timezone-get.php @param DateTimeInterface $object <p>Procedural style only: A {@see DateTime} object returned by {@see date_create()}</p> @return DateTimeZone|false <p> Returns a {@see DateTimeZone} object on success or <b>FALSE</b> on failure. </p>
date_timezone_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_timezone_set(#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTimeInterface")] $object, \DateTimeZone $timezone) { }
Sets the time zone for the datetime object Alias: {@see DateTime::setTimezone} @link https://php.net/manual/en/function.date-timezone-set.php @param DateTime|DateTimeInterface $object <p>A {@see DateTime} object returned by {@see date_create()}. The function modifies this object.</p> @param DateTimeZone $timezone <p>A {@see DateTimeZone} object representing the desired time zone.</p> @return DateTime|false <p>Returns the {@see DateTime} object for method chaining or <b>FALSE</b> on failure.</p>
date_timezone_set
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] function date_offset_get(\DateTimeInterface $object) { }
Alias: {@see DateTime::getOffset} @link https://php.net/manual/en/function.date-offset-get.php @param DateTimeInterface $object <p>Procedural style only: A {@see DateTime} object returned by {@see date_create()}</p> @return int|false <p>Returns the timezone offset in seconds from UTC on success or <b>FALSE</b> on failure.</p>
date_offset_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "DateInterval"], default: "DateInterval|false")] function date_diff(\DateTimeInterface $baseObject, \DateTimeInterface $targetObject, bool $absolute = \false) { }
Returns the difference between two datetime objects Alias: {@see DateTime::diff} @link https://php.net/manual/en/function.date-diff.php @param DateTimeInterface $baseObject @param DateTimeInterface $targetObject The date to compare to @param bool $absolute [optional] Whether to return absolute difference. @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure.
date_diff
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_date_set(\DateTime $object, int $year, int $month, int $day) : \DateTime|false { }
Alias: {@see DateTime::setDate} @link https://php.net/manual/en/function.date-date-set.php @param DateTime $object <p>Procedural style only: A {@see DateTime} object returned by {@see date_create()}. The function modifies this object.</p> @param int $year <p>Year of the date.</p> @param int $month <p>Month of the date.</p> @param int $day <p>Day of the date.</p> @return DateTime|false <p> Returns the {@see DateTime} object for method chaining or <b>FALSE</b> on failure. </p>
date_date_set
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_isodate_set(\DateTime $object, int $year, int $week, int $dayOfWeek = 1) { }
Alias: {@see DateTime::setISODate} @link https://php.net/manual/en/function.date-isodate-set.php @param DateTime $object @param int $year <p>Year of the date</p> @param int $week <p>Week of the date.</p> @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p> @return DateTime|false <p> Returns the {@see DateTime} object for method chaining or <strong><code>FALSE</code></strong> on failure. </p>
date_isodate_set
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[LanguageLevelTypeAware(["8.0" => "DateTime"], default: "DateTime|false")] function date_timestamp_set(\DateTime $object, int $timestamp) : \DateTime|false { }
Sets the date and time based on an unix timestamp Alias: {@see DateTime::setTimestamp} @link https://php.net/manual/en/function.date-timestamp-set.php @param DateTime $object <p>Procedural style only: A {@see DateTime} object returned by {@see date_create()}. The function modifies this object.</p> @param int $timestamp <p>Unix timestamp representing the date.</p> @return DateTime|false {@see DateTime} object for call chaining or <b>FALSE</b> on failure
date_timestamp_set
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_timestamp_get(\DateTimeInterface $object) : int { }
Gets the unix timestamp Alias: {@see DateTime::getTimestamp} @link https://php.net/manual/en/function.date-timestamp-get.php @param DateTimeInterface $object @return int <p>Returns the Unix timestamp representing the date.</p>
date_timestamp_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function timezone_open(string $timezone) : \DateTimeZone|false { }
Returns new DateTimeZone object @link https://php.net/manual/en/function.timezone-open.php @param string $timezone <p> Time zone identifier as full name (e.g. Europe/Prague) or abbreviation (e.g. CET). </p> @return DateTimeZone|false DateTimeZone object on success or false on failure.
timezone_open
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure] function timezone_name_get(\DateTimeZone $object) : string { }
Alias: {@see DateTimeZone::getName} @link https://php.net/manual/en/function.timezone-name-get.php @param DateTimeZone $object <p>The {@see DateTimeZone} for which to get a name.</p> @return string One of the timezone names in the list of timezones.
timezone_name_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST = -1) : string|false { }
Returns the timezone name from abbreviation @link https://php.net/manual/en/function.timezone-name-from-abbr.php @param string $abbr <p> Time zone abbreviation. </p> @param int $utcOffset [optional] <p> Offset from GMT in seconds. Defaults to -1 which means that first found time zone corresponding to abbr is returned. Otherwise exact offset is searched and only if not found then the first time zone with any offset is returned. </p> @param int $isDST [optional] <p> Daylight saving time indicator. If abbr doesn't exist then the time zone is searched solely by offset and isdst. </p> @return string|false time zone name on success or false on failure. @since 5.1.3
timezone_name_from_abbr
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] function timezone_offset_get(\DateTimeZone $object, \DateTimeInterface $datetime) { }
Alias: {@link DateTimeZone::getOffset} @link https://php.net/manual/en/function.timezone-offset-get.php @param DateTimeZone $object <p>Procedural style only: A {@see DateTimeZone} object returned by {@see timezone_open()}</p> @param DateTimeInterface $datetime <p>DateTime that contains the date/time to compute the offset from.</p> @return int|false <p>Returns time zone offset in seconds on success or <b>FALSE</b> on failure.</p>
timezone_offset_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function timezone_transitions_get(\DateTimeZone $object, int $timestampBegin = \PHP_INT_MIN, int $timestampEnd = \PHP_INT_MAX) : array|false { }
Returns all transitions for the timezone Alias: {@see DateTimeZone::getTransitions} @link https://php.net/manual/en/function.timezone-transitions-get.php @param DateTimeZone $object <p>Procedural style only: A {@see DateTimeZone} object returned by {@see timezone_open()}</p> @param int $timestampBegin [optional] <p>Begin timestamp</p> @param int $timestampEnd [optional] <p>End timestamp</p> @return array|false <p>Returns numerically indexed array containing associative array with all transitions on success or FALSE on failure.</p>
timezone_transitions_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[ArrayShape(['country_code' => 'string', 'latitude' => 'double', 'longitude' => 'double', 'comments' => 'string'])] function timezone_location_get(\DateTimeZone $object) : array|false { }
Alias: {@see DateTimeZone::getLocation} @link https://php.net/manual/en/function.timezone-location-get.php @param DateTimeZone $object <p>Procedural style only: A {@see DateTimeZone} object returned by {@see timezone_open()}</p> @return array|false <p>Array containing location information about timezone.</p>
timezone_location_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] function timezone_identifiers_list(int $timezoneGroup = \DateTimeZone::ALL, ?string $countryCode) { }
Returns a numerically indexed array containing all defined timezone identifiers Alias: {@see DateTimeZone::listIdentifiers()} @link https://php.net/manual/en/function.timezone-identifiers-list.php @param int $timezoneGroup [optional] One of DateTimeZone class constants. @param string|null $countryCode [optional] A two-letter ISO 3166-1 compatible country code. Note: This option is only used when $timezoneGroup is set to DateTimeZone::PER_COUNTRY. @return array|false Returns array on success or FALSE on failure.
timezone_identifiers_list
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure] #[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] function timezone_abbreviations_list() { }
Returns associative array containing dst, offset and the timezone name Alias: {@see DateTimeZone::listAbbreviations} @link https://php.net/manual/en/function.timezone-abbreviations-list.php @return array<string, list<array{dst: bool, offset: int, timezone_id: string|null}>>|false Array on success or <b>FALSE</b> on failure.
timezone_abbreviations_list
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure] function timezone_version_get() : string { }
Gets the version of the timezonedb @link https://php.net/manual/en/function.timezone-version-get.php @return string a string.
timezone_version_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_interval_create_from_date_string(string $datetime) : \DateInterval|false { }
Alias: {@see DateInterval::createFromDateString} @link https://php.net/manual/en/function.date-interval-create-from-date-string.php @param string $datetime <p>A date with relative parts. Specifically, the relative formats supported by the parser used for {@see strtotime()} and {@see DateTime} will be used to construct the {@see DateInterval}.</p> @return DateInterval|false <p>Returns a new DateInterval instance.</p>
date_interval_create_from_date_string
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] function date_interval_format(\DateInterval $object, string $format) : string { }
Alias: {@see DateInterval::format} @link https://php.net/manual/en/function.date-interval-format.php @param DateInterval $object @param string $format @return string
date_interval_format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure] function date_default_timezone_get() : string { }
Gets the default timezone used by all date/time functions in a script @link https://php.net/manual/en/function.date-default-timezone-get.php @return string a string.
date_default_timezone_get
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[Deprecated(reason: 'in 8.1. Use date_sun_info instead', since: '8.1')] function date_sunrise(int $timestamp, int $returnFormat = \SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset) : string|int|float|false { }
Returns time of sunrise for a given day and location @link https://php.net/manual/en/function.date-sunrise.php @param int $timestamp <p> The timestamp of the day from which the sunrise time is taken. </p> @param int $returnFormat [optional] <p> <table> format constants <tr valign="top"> <td>constant</td> <td>description</td> <td>example</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_STRING</td> <td>returns the result as string</td> <td>16:46</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_DOUBLE</td> <td>returns the result as float</td> <td>16.78243132</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_TIMESTAMP</td> <td>returns the result as integer (timestamp)</td> <td>1095034606</td> </tr> </table> </p> @param float|null $latitude [optional] <p> Defaults to North, pass in a negative value for South. See also: date.default_latitude </p> @param float|null $longitude [optional] <p> Defaults to East, pass in a negative value for West. See also: date.default_longitude </p> @param float|null $zenith [optional] <p> Default: date.sunrise_zenith </p> @param float|null $utcOffset [optional] @return string|int|float|false the sunrise time in a specified format on success or false on failure. @deprecated in 8.1. Use {@link date_sun_info} instead
date_sunrise
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[Pure(\true)] #[Deprecated(reason: 'in 8.1. Use date_sun_info instead', since: '8.1')] function date_sunset(int $timestamp, int $returnFormat = \SUNFUNCS_RET_STRING, ?float $latitude, ?float $longitude, ?float $zenith, ?float $utcOffset) : string|int|float|false { }
Returns time of sunset for a given day and location @link https://php.net/manual/en/function.date-sunset.php @param int $timestamp <p> The timestamp of the day from which the sunset time is taken. </p> @param int $returnFormat [optional] <p> <table> format constants <tr valign="top"> <td>constant</td> <td>description</td> <td>example</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_STRING</td> <td>returns the result as string</td> <td>16:46</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_DOUBLE</td> <td>returns the result as float</td> <td>16.78243132</td> </tr> <tr valign="top"> <td>SUNFUNCS_RET_TIMESTAMP</td> <td>returns the result as integer (timestamp)</td> <td>1095034606</td> </tr> </table> </p> @param float|null $latitude [optional] <p> Defaults to North, pass in a negative value for South. See also: date.default_latitude </p> @param float|null $longitude [optional] <p> Defaults to East, pass in a negative value for West. See also: date.default_longitude </p> @param float|null $zenith [optional] <p> Default: date.sunset_zenith </p> @param float|null $utcOffset [optional] @return string|int|float|false the sunset time in a specified format on success or false on failure. @deprecated in 8.1. Use {@link date_sun_info} instead
date_sunset
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date.php
MIT
#[TentativeType] public function add(\DateInterval $interval) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Adds an amount of days, months, years, hours, minutes and seconds @param DateInterval $interval @return static @link https://secure.php.net/manual/en/datetimeimmutable.add.php
add
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public static function createFromFormat(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime, #[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null) : \DateTimeImmutable|false { }
(PHP 5 &gt;=5.5.0)<br/> Returns new DateTimeImmutable object formatted according to the specified format @link https://secure.php.net/manual/en/datetimeimmutable.createfromformat.php @param string $format @param string $datetime @param null|DateTimeZone $timezone [optional] @return DateTimeImmutable|false
createFromFormat
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] #[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTimeImmutable')] public static function createFromMutable(\DateTime $object) { }
(PHP 5 &gt;=5.6.0)<br/> Returns new DateTimeImmutable object encapsulating the given DateTime object @link https://secure.php.net/manual/en/datetimeimmutable.createfrommutable.php @param DateTime $object The mutable DateTime object that you want to convert to an immutable version. This object is not modified, but instead a new DateTimeImmutable object is created containing the same date time and timezone information. @return DateTimeImmutable returns a new DateTimeImmutable instance.
createFromMutable
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[ArrayShape(["warning_count" => "int", "warnings" => "string[]", "error_count" => "int", "errors" => "string[]"])] #[TentativeType] public static function getLastErrors() : array|false { }
(PHP 5 &gt;=5.5.0)<br/> Returns the warnings and errors @link https://secure.php.net/manual/en/datetimeimmutable.getlasterrors.php @return array|false Returns array containing info about warnings and errors.
getLastErrors
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[Pure] #[TentativeType] public function modify(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $modifier) : \DateTimeImmutable|false { }
(PHP 5 &gt;=5.5.0)<br/> Alters the timestamp @link https://secure.php.net/manual/en/datetimeimmutable.modify.php @param string $modifier <p>A date/time string. Valid formats are explained in {@link https://secure.php.net/manual/en/datetime.formats.php Date and Time Formats}.</p> @return static|false Returns the newly created object or false on failure. Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
modify
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setDate(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $month, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $day) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Sets the date @link https://secure.php.net/manual/en/datetimeimmutable.setdate.php @param int $year <p>Year of the date.</p> @param int $month <p>Month of the date.</p> @param int $day <p>Day of the date.</p> @return static|false Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
setDate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setISODate(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $week, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $dayOfWeek = 1) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Sets the ISO date @link https://php.net/manual/en/class.datetimeimmutable.php @param int $year <p>Year of the date.</p> @param int $week <p>Week of the date.</p> @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p> @return static|false Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
setISODate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTime(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $hour, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $minute, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $second = 0, #[PhpStormStubsElementAvailable(from: '7.1')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $microsecond = 0) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Sets the time @link https://secure.php.net/manual/en/datetimeimmutable.settime.php @param int $hour <p> Hour of the time. </p> @param int $minute <p> Minute of the time. </p> @param int $second [optional] <p> Second of the time. </p> @param int $microsecond [optional] <p> Microseconds of the time. Added since 7.1</p> @return static|false Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
setTime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTimestamp(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Sets the date and time based on an Unix timestamp @link https://secure.php.net/manual/en/datetimeimmutable.settimestamp.php @param int $timestamp <p>Unix timestamp representing the date.</p> @return static Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
setTimestamp
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTimezone(\DateTimeZone $timezone) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Sets the time zone @link https://secure.php.net/manual/en/datetimeimmutable.settimezone.php @param DateTimeZone $timezone <p> A {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the desired time zone. </p> @return static Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
setTimezone
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function sub(\DateInterval $interval) : \DateTimeImmutable { }
(PHP 5 &gt;=5.5.0)<br/> Subtracts an amount of days, months, years, hours, minutes and seconds @link https://secure.php.net/manual/en/datetimeimmutable.sub.php @param DateInterval $interval <p> A {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object </p> @return static Returns the {@link https://secure.php.net/manual/en/class.datetimeimmutable.php DateTimeImmutable} object for method chaining or <b>FALSE</b> on failure.
sub
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function diff(#[LanguageLevelTypeAware(['8.0' => 'DateTimeInterface'], default: '')] $targetObject, #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $absolute = \false) : \DateInterval { }
(PHP 5 &gt;=5.5.0)<br/> Returns the difference between two DateTime objects @link https://secure.php.net/manual/en/datetime.diff.php @param DateTimeInterface $targetObject <p>The date to compare to.</p> @param bool $absolute [optional] <p>Should the interval be forced to be positive?</p> @return DateInterval|false The {@link https://secure.php.net/manual/en/class.dateinterval.php DateInterval} object representing the difference between the two dates or <b>FALSE</b> on failure.
diff
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format) : string { }
(PHP 5 &gt;=5.5.0)<br/> Returns date formatted according to given format @link https://secure.php.net/manual/en/datetime.format.php @param string $format <p> Format accepted by {@link https://secure.php.net/manual/en/function.date.php date()}. </p> @return string Returns the formatted date string on success or <b>FALSE</b> on failure.
format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getOffset() : int { }
(PHP 5 &gt;=5.5.0)<br/> Returns the timezone offset @return int Returns the timezone offset in seconds from UTC on success or <b>FALSE</b> on failure.
getOffset
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getTimestamp() : int { }
(PHP 5 &gt;=5.5.0)<br/> Gets the Unix timestamp @return int Returns the Unix timestamp representing the date.
getTimestamp
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getTimezone() : \DateTimeZone|false { }
(PHP 5 &gt;=5.5.0)<br/> Return time zone relative to given DateTime @link https://secure.php.net/manual/en/datetime.gettimezone.php @return DateTimeZone|false Returns a {@link https://secure.php.net/manual/en/class.datetimezone.php DateTimeZone} object on success or <b>FALSE</b> on failure.
getTimezone
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function __wakeup() : void { }
(PHP 5 &gt;=5.5.0)<br/> The __wakeup handler @link https://secure.php.net/manual/en/datetime.wakeup.php @return void Initializes a DateTime object.
__wakeup
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function __wakeup() : void { }
@return void @link https://php.net/manual/en/datetime.wakeup.php
__wakeup
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function format(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format) : string { }
Returns date formatted according to given format. @param string $format @return string @link https://php.net/manual/en/datetime.format.php
format
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function modify(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $modifier) : \DateTime|false { }
Alter the timestamp of a DateTime object by incrementing or decrementing in a format accepted by strtotime(). @param string $modifier A date/time string. Valid formats are explained in <a href="https://secure.php.net/manual/en/datetime.formats.php">Date and Time Formats</a>. @return static|false Returns the DateTime object for method chaining or FALSE on failure. @link https://php.net/manual/en/datetime.modify.php
modify
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function add(\DateInterval $interval) : \DateTime { }
Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object @param DateInterval $interval @return static @link https://php.net/manual/en/datetime.add.php
add
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] #[LanguageLevelTypeAware(['8.2' => 'static'], default: 'DateTime')] public static function createFromImmutable(\DateTimeImmutable $object) { }
@param DateTimeImmutable $object @return DateTime @since 7.3
createFromImmutable
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function sub(\DateInterval $interval) : \DateTime { }
Subtracts an amount of days, months, years, hours, minutes and seconds from a DateTime object @param DateInterval $interval @return static @link https://php.net/manual/en/datetime.sub.php
sub
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getTimezone() : \DateTimeZone|false { }
Get the TimeZone associated with the DateTime @return DateTimeZone|false @link https://php.net/manual/en/datetime.gettimezone.php
getTimezone
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTimezone(#[LanguageLevelTypeAware(['8.0' => 'DateTimeZone'], default: '')] $timezone) : \DateTime { }
Set the TimeZone associated with the DateTime @param DateTimeZone $timezone @return static @link https://php.net/manual/en/datetime.settimezone.php
setTimezone
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getOffset() : int { }
Returns the timezone offset @return int @link https://php.net/manual/en/datetime.getoffset.php
getOffset
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTime(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $hour, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $minute, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $second = 0, #[PhpStormStubsElementAvailable(from: '7.1')] #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $microsecond = 0) : \DateTime { }
Sets the current time of the DateTime object to a different time. @param int $hour @param int $minute @param int $second @param int $microsecond Added since 7.1 @return static @link https://php.net/manual/en/datetime.settime.php
setTime
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setDate(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $month, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $day) : \DateTime { }
Sets the current date of the DateTime object to a different date. @param int $year @param int $month @param int $day @return static @link https://php.net/manual/en/datetime.setdate.php
setDate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setISODate(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $year, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $week, #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $dayOfWeek = 1) : \DateTime { }
Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates. @param int $year @param int $week @param int $dayOfWeek @return static @link https://php.net/manual/en/datetime.setisodate.php
setISODate
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function setTimestamp(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $timestamp) : \DateTime { }
Sets the date and time based on a Unix timestamp. @param int $timestamp @return static @link https://php.net/manual/en/datetime.settimestamp.php
setTimestamp
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getTimestamp() : int { }
Gets the Unix timestamp. @return int @link https://php.net/manual/en/datetime.gettimestamp.php
getTimestamp
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function diff(#[LanguageLevelTypeAware(['8.0' => 'DateTimeInterface'], default: '')] $targetObject, #[LanguageLevelTypeAware(['8.0' => 'bool'], default: '')] $absolute = \false) : \DateInterval { }
Returns the difference between two DateTime objects represented as a DateInterval. @param DateTimeInterface $targetObject The date to compare to. @param bool $absolute [optional] Whether to return absolute difference. @return DateInterval|false The DateInterval object representing the difference between the two dates. @link https://php.net/manual/en/datetime.diff.php
diff
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public static function createFromFormat(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $format, #[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $datetime, #[LanguageLevelTypeAware(['8.0' => 'DateTimeZone|null'], default: 'DateTimeZone')] $timezone = null) : \DateTime|false { }
Parse a string into a new DateTime object according to the specified format @param string $format Format accepted by date(). @param string $datetime String representing the time. @param null|DateTimeZone $timezone A DateTimeZone object representing the desired time zone. @return DateTime|false @link https://php.net/manual/en/datetime.createfromformat.php
createFromFormat
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[ArrayShape(["warning_count" => "int", "warnings" => "string[]", "error_count" => "int", "errors" => "string[]"])] #[TentativeType] public static function getLastErrors() : array|false { }
Returns an array of warnings and errors found while parsing a date/time string @return array|false @link https://php.net/manual/en/datetime.getlasterrors.php
getLastErrors
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT
#[TentativeType] public function getName() : string { }
Returns the name of the timezone @return string @link https://php.net/manual/en/datetimezone.getname.php
getName
php
deptrac/deptrac
vendor/jetbrains/phpstorm-stubs/date/date_c.php
https://github.com/deptrac/deptrac/blob/master/vendor/jetbrains/phpstorm-stubs/date/date_c.php
MIT