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

Add #yesterday?, #today?, and #tomorrow? to ZonedDateTime, Date, and Time classes. #341

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jimtng
Copy link
Contributor

@jimtng jimtng commented Sep 17, 2024

No description provided.

@jimtng jimtng added the enhancement New feature or request label Sep 17, 2024
@jimtng jimtng force-pushed the zdt-today branch 2 times, most recently from e8a829b to d444bbd Compare September 17, 2024 01:19
…, and Time classes.

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>

describe "#today?" do
it "returns true if the date is today" do
-12.upto(12) do |offset|
Copy link
Contributor

Choose a reason for hiding this comment

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

I can't wait for this to fail on Daylight Savings Time transitions :p

@ccutrer ccutrer merged commit cdc2416 into openhab:main Sep 17, 2024
20 of 21 checks passed
@jimtng jimtng deleted the zdt-today branch September 19, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants