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 time of day-based greetings #1290

Open
XVII opened this issue Aug 3, 2023 · 0 comments
Open

Add time of day-based greetings #1290

XVII opened this issue Aug 3, 2023 · 0 comments

Comments

@XVII
Copy link

XVII commented Aug 3, 2023

It would be useful to have a helper function for building Greetings, i.e. "Good morning", "Good afternoon", "Good evening" based on the current time.

Perhaps an extension to DateTime and TimeOnly along the lines of .ToPeriodOfDayNotation() might be the best way to implement this. It would return "morning" or "afternoon" or "evening" which could then be adapted into a greeting.

Or, could be .ToGreetingNotation() perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant