From e8b566439af4bf24aaf4ebfc72d510a4222b5a9b Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 26 Jul 2017 19:32:43 +0100 Subject: fix time --- src/globals.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/globals.php b/src/globals.php index 023958e..3587b42 100755 --- a/src/globals.php +++ b/src/globals.php @@ -258,12 +258,10 @@ function mytime() { return time(); } function mymtime() { - list($usec, $sec) = explode(" ", microtime(true)); - return (float) (((int) (1000*$usec))/1000 + $sec); + return microtime(true); } function myunique() { - list($usec, $sec) = explode(" ", microtime(true)); - return ((int)(100*$usec)) + 100*(((int)$sec) % 10000000); + return ((int)(100*microtime(true))) % 100000000; } //retorna data e hora atuais function now () { -- cgit v1.2.3