Skip to content

Commit

Permalink
idate and gmdate functions: added descriptions for $timestamp parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
King2500 authored and LolGleb committed Aug 17, 2023
1 parent c9fda7c commit 71588c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions date/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ function date(string $format, ?int $timestamp) {}
* </tr>
* </table>
* </p>
* @param int|null $timestamp [optional]
* @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
Expand All @@ -400,7 +401,8 @@ function idate(string $format, ?int $timestamp): int|false {}
* The format of the outputted date string. See the formatting
* options for the date function.
* </p>
* @param int|null $timestamp [optional]
* @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 string|false a formatted date string. If a non-numeric value is used for
* timestamp, false is returned and an
* E_WARNING level error is emitted.
Expand Down

0 comments on commit 71588c8

Please sign in to comment.