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

Functions to create a Period from a single dateTime #90

Open
7 tasks
Seddryck opened this issue Dec 12, 2022 · 0 comments
Open
7 tasks

Functions to create a Period from a single dateTime #90

Seddryck opened this issue Dec 12, 2022 · 0 comments
Labels
epic-on-period new-feature Request for a new feature in the tool

Comments

@Seddryck
Copy link
Owner

It should be possible to create a function from a single dateTime. The following functions should be read as dateTime-to-period-...

  • starting-now : returns a period where the date argument is the end of the period and the beginning is now
  • ending-now : returns a period where the date argument is the beginning of the period and the end is now
  • starting-ago(timestamp) : returns a period where the date argument is the end of the period and the duration of the interval is equal to the timestamp.
  • ending-in(timestamp) : returns a period where the date argument is the beginning of the period and the duration of the interval is equal to the timestamp.
  • covering(timestamp) : returns a period where the date argument is the middle of the period and the duration of the interval is equal to the timestamp.
  • starting-at(dateTime) : returns a period where the date argument is the end of the period and the date provided as parameter of the function is the beginning
  • ending-at(dateTime) : returns a period where the date argument is the beginning of the period and the date provided as parameter of the function is the end
@Seddryck Seddryck added new-feature Request for a new feature in the tool epic-on-period labels Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic-on-period new-feature Request for a new feature in the tool
Projects
None yet
Development

No branches or pull requests

1 participant