Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[timer] Add Timer.getExecutionTime() #2147

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Jan 23, 2021

This will return a ZonedDateTime of the scheduled execution time. This will allow the timer logic to determine how much extension (via reschedule) a timer would need, based on the current timer schedule.

It will return null if the timer has been cancelled.

It will return a time in the past if the timer has terminated.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng jimtng requested a review from a team as a code owner January 23, 2021 03:18
@wborn wborn added rebuild Triggers the Jenkins PR build and removed rebuild Triggers the Jenkins PR build labels Jan 23, 2021
Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, indeed a useful addition 👍

@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Jan 26, 2021
@kaikreuzer kaikreuzer added this to the 3.1 milestone Jan 26, 2021
@kaikreuzer kaikreuzer merged commit 6de92ec into openhab:main Jan 26, 2021
@jimtng jimtng deleted the timer-gettime branch March 18, 2023 08:57
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
GitOrigin-RevId: 6de92ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants