Added gracetime in human readable form, graceline too, and graceminfreq
This commit is contained in:
parent
e1bd0ec900
commit
fac92aefbc
1 changed files with 3 additions and 4 deletions
|
@ -17,10 +17,9 @@
|
|||
*/
|
||||
|
||||
const N="\n";
|
||||
require __DIR__.'/../lib/gracetime.php';
|
||||
$bti=round(microtime(true));
|
||||
$graceline=gmmktime(0,0,0,gmdate('n',$bti),gmdate('j',$bti),gmdate('Y',$bti))-$gracetime;
|
||||
echo $graceline.N;
|
||||
require __DIR__.'/../lib/ght.php';
|
||||
require __DIR__.'/../lib/grace.php';
|
||||
echo 'gracetime: '.$gracetime.' seconds ('.ght($gracetime,null,0,'days').')'.N.'graceline: '.$graceline.' ('.gmdate('Y-m-d H:i:s',$graceline).' UTC)'.N.'graceminfreq: '.$graceminfreq.' seconds ('.ght($graceminfreq,null,0,'days').')'.N;
|
||||
exit(0);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue