]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/class_BaseFrameworkSystem.php
Following things are changed: (in order of class names)
[shipsimu.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 7d9467ad68457fec86e222066c58ce7a5b760235..de854be0232e2d440c09d9784daf581896c765ec 100644 (file)
@@ -1109,6 +1109,30 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                // Return the code
                return $markedCode;
        }
+
+       /**
+        * Filter a given timestamp to make it look more beatifull for web-based
+        * front-ends. If null is given a message id null_timestamp will be
+        * resolved and returned.
+        *
+        * @param       $timestamp      Timestamp to prepare (filter) for display
+        * @return      $readable       A readable timestamp
+        */
+       public function doFilterFormatTimestamp ($timestamp) {
+               // Default value to return
+               $readable = "???";
+
+               // Is the timestamp null?
+               if (is_null($timestamp)) {
+                       // Get a message string
+                       $readable = $this->getLanguageInstance()->getMessage('null_timestamp');
+               } else {
+                       $this->partialStub("Do further analysis on timestamp {$timestamp}.");
+               }
+
+               // Return the stamp
+               return $readable;
+       }
 }
 
 // [EOF]