Add CRM.sigfig utility
[civicrm-core.git] / CRM / Utils / Time.php
index 88e709998da43cdb28509a359ed4e8080f0598bf..99c75e9afcdc505590718a0cec9a021cc2a3d555 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -44,21 +44,20 @@ class CRM_Utils_Time {
   static private $_delta = 0;
 
   /**
-   * Get the time
+   * Get the time.
    *
    * @param string $returnFormat
    *   Format in which date is to be retrieved.
    *
    * @return date
    *
-   * @static
    */
   public static function getTime($returnFormat = 'YmdHis') {
     return date($returnFormat, self::getTimeRaw());
   }
 
   /**
-   * Get the time
+   * Get the time.
    *
    * @return int, seconds since epoch
    */
@@ -67,7 +66,7 @@ class CRM_Utils_Time {
   }
 
   /**
-   * Set the given time
+   * Set the given time.
    *
    * @param string $newDateTime
    *   A date formatted with strtotime.
@@ -76,7 +75,6 @@ class CRM_Utils_Time {
    *
    * @return date
    *
-   * @static
    */
   public static function setTime($newDateTime, $returnFormat = 'YmdHis') {
     self::$_delta = strtotime($newDateTime) - time();
@@ -84,7 +82,7 @@ class CRM_Utils_Time {
   }
 
   /**
-   * Remove any time overrides
+   * Remove any time overrides.
    */
   public static function resetTime() {
     self::$_delta = 0;
@@ -106,4 +104,5 @@ class CRM_Utils_Time {
     $diff = strtotime($b) - strtotime($a);
     return (abs($diff) <= $threshold);
   }
+
 }