peppeocchi / php-cron-scheduler

PHP cron job scheduler
MIT License
808 stars 143 forks source link

Add method to retrieve executionTime #149

Closed j6s closed 1 month ago

j6s commented 5 months ago

For a project I wanted to implement a list / overview of all cronjobs as well as their next execution times, but had to discover that this information is not part of the public API of Job.

This PR adds a new Job::getExecutionTime method, which returns the underlying CronExpression.