<?php
 
include_once("RemainOrElapse.class.php");
 
echo '<pre>';
 
$r=new Remorelap("2016-05-26 08:25:59");
 
var_dump($r->ago());
 
 
$r=new Remorelap("2018-09-17 08:25:59");
 
var_dump($r->remained());
 
 
print($r->date->getTimestamp());
 
$r=new remorelap();
 
print_r($r->nth_recurrence('6 years 1 days 40 minutes',20));//here we choose to get just the 20th occurence of 2 year reccurence sin
 
print_r($r->recurrence('6 years 1 days 40 minutes',20));//here we choose to get 20 occurences of 2 year reccurencece the chosen date.
 
 
 
 
 
?>
 
 |