PHP Classes

File: readme

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP handy date time handler   readme   Download  
File: readme
Role: Documentation
Content type: text/plain
Description: readme
Class: PHP handy date time handler
Compute dates and times of recurring events
Author: By
Last change: add some precisions about new version
Date: 5 years ago
Size: 1,424 bytes
 

Contents

Class file image Download
RemainOrelapse class is a simple class to handle Event recurrences but also time remained to an event or time elapsed from an event . class RemainOrElapse protected $date; public function __construct($date=null) take as Argument valid DateTime Object or a valid Date format public function ago($format="") return a DateInterval object or a date in the chosen format For more information about the format see the PHP DateInterval::format function public function remained($format="") return a DateInterval object or a date in the chosen format For more information about the format see the PHP DateInterval::format function public function recurrence($interval,$nth=0,$daysinMonth=30) return a DatePeriod object public function nth_recurrence($interval,$nth=0,$format="",$daysinMonth=30): return a DateTime object or a date in the chosen format representing the nth date of a recurrene For more information about the format see the PHP DateTime::format function class_alias("RemainOrElapse","Remorelap"); For more information on how to specify the Interval see the function PHP DateInterval::CreateFromDateString For a how to use example see the testremorlap.php file and for more questions or bug reporting or simply feedback rate this class and use the dedicated forum at PHPclasses.org or simply contact me at leizmo@gmail.com