diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 18:32:43 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-07-26 18:32:43 +0000 |
| commit | e8b566439af4bf24aaf4ebfc72d510a4222b5a9b (patch) | |
| tree | c8d3ebe15adb72f84664a6b1dde3f91c74f49d9c /src | |
| parent | 30b11eb251a0fcf04f99dd996394489854f9afc2 (diff) | |
| download | boca-e8b566439af4bf24aaf4ebfc72d510a4222b5a9b.tar.gz boca-e8b566439af4bf24aaf4ebfc72d510a4222b5a9b.zip | |
fix time
Diffstat (limited to 'src')
| -rwxr-xr-x | src/globals.php | 6 |
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 () { |