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

Support relative boundaries for date years #13

Open
wesvetter opened this issue Dec 3, 2018 · 0 comments
Open

Support relative boundaries for date years #13

wesvetter opened this issue Dec 3, 2018 · 0 comments

Comments

@wesvetter
Copy link
Member

Currently if you want a relative range, you have to do something like this:

schema =
  prescribed:
    type: 'Date'
    yearStart : (new Date()).getFullYear() - 10
    yearEnd   : (new Date()).getFullYear() + 10

which is kinda clunky. It would be nice if you could do something like:

schema =
  prescribed:
    type: 'Date'
    startRange : -10
    endRange   : +10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant