PHP Classes

File: testremorlap.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP handy date time handler   testremorlap.php   Download  
File: testremorlap.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP handy date time handler
Compute dates and times of recurring events
Author: By
Last change: Test for new version 2.0.0
Date: 5 years ago
Size: 536 bytes
 

Contents

Class file image Download
<?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.




?>