Download .zip |
Info | Documentation | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-08-28 (11 days ago) | Not yet rated by the users | Total: 157 This week: 20 | All time: 8,519 This week: 50 |
Version | License | PHP version | Categories | |||
m8 2.0.0 | Custom (specified... | 5 | PHP 5, Time and Date |
Description | Author | |
This class can compute dates and times of recurring events. Recommendations I need to pick a date and return it to a form quarter wise, dates, Time that passed since timestamp What is the best PHP timer countdown class? |
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 |
Files |
File | Role | Description |
---|---|---|
license | Lic. | license |
readme | Doc. | readme |
RemainOrElapse.class.php | Class | class source |
testremorlap.php | Example | example script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.