Added @since tags
authorjeroendedauw <jeroendedauw@gmail.com>
Fri, 21 Sep 2012 19:00:34 +0000 (21:00 +0200)
committerjeroendedauw <jeroendedauw@gmail.com>
Fri, 21 Sep 2012 19:17:48 +0000 (21:17 +0200)
Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5

includes/Timestamp.php

index c9ba8d9..fed95c0 100644 (file)
@@ -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 "<N> <units> 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 {}