summaryrefslogtreecommitdiffstats
path: root/lib/Utility/Time.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Utility/Time.php')
-rw-r--r--lib/Utility/Time.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php
index c46dbd524..2823e85d8 100644
--- a/lib/Utility/Time.php
+++ b/lib/Utility/Time.php
@@ -6,20 +6,23 @@
* later. See the COPYING file.
*
* @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Bernhard Posselt 2016
+ * @copyright 2016 Bernhard Posselt
*/
namespace OCA\News\Utility;
-class Time {
- public function getTime() {
+class Time
+{
+ public function getTime()
+ {
return time();
}
/**
* @return int the current unix time in miliseconds
*/
- public function getMicroTime() {
+ public function getMicroTime()
+ {
list($millisecs, $secs) = explode(" ", microtime());
return $secs . substr($millisecs, 2, 6);
}