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

Unbounded Periods #64

Closed
bendavies opened this issue Sep 12, 2018 · 3 comments
Closed

Unbounded Periods #64

bendavies opened this issue Sep 12, 2018 · 3 comments

Comments

@bendavies
Copy link

Hey there,

Any thoughts on supporting unbounded periods, i.e. periods with no start or end date?
This would possibly mirror and be usable with the postgres tstzrange type, which can be unbounded.
https://www.postgresql.org/docs/9.3/static/rangetypes.html#RANGETYPES-INFINITE

Cheers

@nyamsprod
Copy link
Member

Frankly the thought have crossed my mind but I never went as far as to think about what it would look like. If you have an idea or better an implementation to share that would be a great starting point.

@nyamsprod
Copy link
Member

Since version 4.4 all boundary types are supported except for unbounded types. Why because it would mean BC break. The current workaround is to declare one endpoint outside your business model making it pseudo unbounded.

@nyamsprod nyamsprod changed the title Unbouded Periods Unbounded Periods Feb 3, 2019
@nyamsprod nyamsprod pinned this issue Apr 10, 2019
@andreybolonin
Copy link

spatie/period#52

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

3 participants