mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
27 lines
603 B
PHP
27 lines
603 B
PHP
<?php
|
|
|
|
//This Script Verifies your System Time vs Myself Time vs PHP Time
|
|
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
|
|
use nntmux\db\DB;
|
|
|
|
$res = '';
|
|
|
|
$db = new DB();
|
|
$res = $db->queryOneRow(sprintf('Select now()'));
|
|
foreach ($res as $time) {
|
|
echo 'Mysql Time Is Now '.$time."\n";
|
|
}
|
|
$res = '';
|
|
$res = date('r');
|
|
echo 'PHP Time Is Now '.$res."\n";
|
|
$res = '';
|
|
|
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
|
|
exec('time /t', $res);
|
|
echo 'System Time is Now '.$res['0']."\n";
|
|
} else {
|
|
exec('date', $res);
|
|
echo 'System Time is Now '.$res['0']."\n";
|
|
}
|