Fix documentation of wfTimestamp()

Change-Id: I12a5ad918aa16fb329a95615b6a470953ce68154
This commit is contained in:
Gergő Tisza 2022-08-24 18:25:38 -07:00
parent 00a5a4d57a
commit 94b43c8ce2
No known key found for this signature in database
GPG key ID: C34FEC97E6257F96

View file

@ -1418,10 +1418,12 @@ function wfClearOutputBuffers() {
/**
* Get a timestamp string in one of various formats
*
* @param mixed $outputtype A timestamp in one of the supported formats, the
* function will autodetect which format is supplied and act accordingly.
* @param mixed $ts Optional timestamp to convert, default 0 for the current time
* @return string|false The same date in the format specified in $outputtype or false
* @param mixed $outputtype Output format, one of the TS_* constants. Defaults to
* Unix timestamp.
* @param mixed $ts A timestamp in any supported format. The
* function will autodetect which format is supplied and act accordingly. Use 0 or
* omit to use current time
* @return string|false The date in the specified format, or false on error.
*/
function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
$ret = MWTimestamp::convert( $outputtype, $ts );