LAMP stack
Clone the repository visit the webroot in your browser
- Find out the number of days between two datetime parameters.
- Find out the number of weekdays between two datetime parameters.
- Find out the number of complete weeks between two datetime parameters.
- Accept a third parameter to convert the result of (1, 2 or 3) into one of seconds, minutes, hours, years.
- Allow the specification of a timezone for comparison of input parameters from different timezones.
- PHP / Web front-end using JS calendar plug-in
- Submit form (no validation!) to perform calculation
- Instantiate DateCalulator Class
- Call relevant functions
- run
composer install
- run
vendor/phpunit/phpunit/phpunit tests/DateCalculatorTest.php
- Further Testing
- General refactor
- PHPDoc
- Re-visit algorithm to improve performance
- Improve interface
- Implement code re-use for calculating different units
- PHPUnit tests