Added gracetime in human readable form, graceline too, and graceminfreq

This commit is contained in:
pezcurrel 2024-01-02 00:44:23 +01:00
parent e1bd0ec900
commit fac92aefbc

View file

@ -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);
?>