Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 isAfterMonth isAfterDay isBeforeMonth isBeforeDay #67

Closed
utamori opened this issue Nov 25, 2022 · 0 comments
Closed

add isAfterMonth isAfterDay isBeforeMonth isBeforeDay #67

utamori opened this issue Nov 25, 2022 · 0 comments

Comments

@utamori
Copy link

utamori commented Nov 25, 2022

DateTIme class has isAfter isBefore
but There is no API to determine whether a given date is after or before the day after or before the day before.
also month

final DateTime specificDate = DateTime(2021, 01, 01);
final DateTime sameDate = DateTime(2021, 01, 01).add(const Duration(seconds: 5));
final DateTime otherDate = DateTime(2021, 01, 02);

print(specificDate.isAfterDay(sameDate)); // false
print(specificDate.isAfterDay(otherDate)); // true
Repository owner locked and limited conversation to collaborators Jan 14, 2023
@jogboms jogboms converted this issue into discussion #68 Jan 14, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant