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

Consolidate tokens that end with "utc" by passing the expected DateTime in the constructor of the TimeParser class for example #4

Open
ramiabughazaleh opened this issue Jan 20, 2017 · 0 comments

Comments

@ramiabughazaleh
Copy link

I would like to consolidate the "now", "nowutc", "today", and "todayutc" tokens to just "now" and "today".

The expected type of DateTime can be passed in the constructor of the TimeParser class for example.

The parameter passed to the constructor can maybe be DateTime, DateTimeOffset, or DateTimeKind, for example but I'm not exactly sure which one is best.

In this way, then maybe the methods ParseName and Parse can also be consolidated into just one Parse(string input) method.

Thank you.

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