From: jeroendedauw Date: Fri, 21 Sep 2012 19:00:34 +0000 (+0200) Subject: Added @since tags X-Git-Tag: 1.31.0-rc.0~22317 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=d440bc6cdcea6f6596a1be0841ce6c90b342eeab;p=lhc%2Fweb%2Fwiklou.git Added @since tags Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5 --- 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 {}