From d440bc6cdcea6f6596a1be0841ce6c90b342eeab Mon Sep 17 00:00:00 2001 From: jeroendedauw Date: Fri, 21 Sep 2012 21:00:34 +0200 Subject: [PATCH] Added @since tags Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5 --- includes/Timestamp.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/Timestamp.php b/includes/Timestamp.php index c9ba8d9185..fed95c0ced 100644 --- a/includes/Timestamp.php +++ b/includes/Timestamp.php @@ -69,6 +69,8 @@ class MWTimestamp { * Make a new timestamp and set it to the specified time, * or the current time if unspecified. * + * @since 1.20 + * * @param $timestamp bool|string Timestamp to set, or false for current time */ public function __construct( $timestamp = false ) { @@ -81,6 +83,8 @@ class MWTimestamp { * Parse the given timestamp into either a DateTime object or a Unix timestamp, * and then store it. * + * @since 1.20 + * * @param $ts string|bool Timestamp to store, or false for now * @throws TimestampException */ @@ -158,6 +162,8 @@ class MWTimestamp { * Convert the internal timestamp to the specified format and then * return it. * + * @since 1.20 + * * @param $style int Constant Output format for timestamp * @throws TimestampException * @return string The formatted timestamp @@ -192,6 +198,8 @@ class MWTimestamp { * generate a readable timestamp by returning " ago", where the * largest possible unit is used. * + * @since 1.20 + * * @return string Formatted timestamp */ public function getHumanTimestamp() { @@ -219,6 +227,8 @@ class MWTimestamp { } /** + * @since 1.20 + * * @return string */ public function __toString() { @@ -226,4 +236,7 @@ class MWTimestamp { } } +/** + * @since 1.20 + */ class TimestampException extends MWException {} -- 2.20.1