]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/DateTimeFormat.php
Fix PHPDoc comments project-wide
[friendica.git] / src / Util / DateTimeFormat.php
index 8eead1d2e51919c2cc84f7444c65a17c70099996..0b47a16f1549b5fa86c4417bc1bd6949c6684c5c 100644 (file)
@@ -26,6 +26,7 @@ class DateTimeFormat
         * @param string $time   A date/time string
         * @param string $format DateTime format string or Temporal constant
         * @return string
+        * @throws Exception
         */
        public static function utc($time, $format = self::MYSQL)
        {
@@ -38,6 +39,7 @@ class DateTimeFormat
         * @param string $time   A date/time string
         * @param string $format DateTime format string or Temporal constant
         * @return string
+        * @throws Exception
         */
        public static function local($time, $format = self::MYSQL)
        {
@@ -47,8 +49,10 @@ class DateTimeFormat
        /**
         * convert() shorthand for timezoned now.
         *
+        * @param        $timezone
         * @param string $format DateTime format string or Temporal constant
         * @return string
+        * @throws Exception
         */
        public static function timezoneNow($timezone, $format = self::MYSQL)
        {
@@ -60,6 +64,7 @@ class DateTimeFormat
         *
         * @param string $format DateTime format string or Temporal constant
         * @return string
+        * @throws Exception
         */
        public static function localNow($format = self::MYSQL)
        {
@@ -71,6 +76,7 @@ class DateTimeFormat
         *
         * @param string $format DateTime format string or Temporal constant
         * @return string
+        * @throws Exception
         */
        public static function utcNow($format = self::MYSQL)
        {
@@ -84,9 +90,10 @@ class DateTimeFormat
         * @param string $tz_to   Destination timezone
         * @param string $tz_from Source timezone
         * @param string $format  Output format recognised from php's DateTime class
-        *   http://www.php.net/manual/en/datetime.format.php
+        *                        http://www.php.net/manual/en/datetime.format.php
         *
         * @return string Formatted date according to given format
+        * @throws Exception
         */
        public static function convert($s = 'now', $tz_to = 'UTC', $tz_from = 'UTC', $format = self::MYSQL)
        {