aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-07-26 18:32:43 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-07-26 18:32:43 +0000
commite8b566439af4bf24aaf4ebfc72d510a4222b5a9b (patch)
treec8d3ebe15adb72f84664a6b1dde3f91c74f49d9c /src/globals.php
parent30b11eb251a0fcf04f99dd996394489854f9afc2 (diff)
downloadboca-e8b566439af4bf24aaf4ebfc72d510a4222b5a9b.tar.gz
boca-e8b566439af4bf24aaf4ebfc72d510a4222b5a9b.zip
fix time
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php6
1 files 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 () {