diff options
Diffstat (limited to 'lib/Utility/Time.php')
-rw-r--r-- | lib/Utility/Time.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php index 739204f6d..aee1e6358 100644 --- a/lib/Utility/Time.php +++ b/lib/Utility/Time.php @@ -13,7 +13,7 @@ namespace OCA\News\Utility; class Time { - public function getTime() + public function getTime(): int { return time(); } @@ -21,7 +21,7 @@ class Time /** * @return int the current unix time in miliseconds */ - public function getMicroTime() + public function getMicroTime(): int { list($millisecs, $secs) = explode(" ", microtime()); return $secs . substr($millisecs, 2, 6); |