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

Durations #22

Open
20 tasks
Tracked by #8
aschaeffer opened this issue Mar 25, 2023 · 0 comments
Open
20 tasks
Tracked by #8

Durations #22

aschaeffer opened this issue Mar 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request plugin Plugin System or Plugin related
Milestone

Comments

@aschaeffer
Copy link
Collaborator

aschaeffer commented Mar 25, 2023

Goal

Represents a duration. A duration is represented as ISO8601 string.

Use Cases

  • Calculate with two durations, for example add two durations (1 day + 1 day = 2 days)
  • Calculate with a date time and a duration (see Date Calculation #23)
  • Use durations in schedulers / periodically executed tasks
    • Execute task every duration
    • Execute task in duration
  • Use durations for defining lifetimes
    • A particle lives for duration
    • A projectile explodes in duration
    • A game ends in duration
    • The game last duration
  • Use durations for polling
    • Send HTTP Request every duration
    • Synchronize something every duration

Tasks

Reference

Crates

@aschaeffer aschaeffer added enhancement New feature or request plugin Plugin System or Plugin related labels Mar 25, 2023
@aschaeffer aschaeffer self-assigned this Mar 25, 2023
@aschaeffer aschaeffer changed the title Durations Component Duration Mar 25, 2023
@aschaeffer aschaeffer changed the title Component Duration Durations Mar 25, 2023
@aschaeffer aschaeffer added this to the 0.10.0 milestone Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin Plugin System or Plugin related
Projects
None yet
Development

No branches or pull requests

1 participant