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 human-readable refresh_interval values #563

Open
dreikanter opened this issue Aug 10, 2024 · 0 comments
Open

Support human-readable refresh_interval values #563

dreikanter opened this issue Aug 10, 2024 · 0 comments
Labels

Comments

@dreikanter
Copy link
Owner

dreikanter commented Aug 10, 2024

Format:

(\d+)(?=s|m|h|d|w|mo|y)

Missing time unit means \1 is the amount of minutes.

Time units:

  1. s - seconds
    • Example: 5s for 5 seconds
  2. m - minutes
    • Example: 3m for 3 minutes
  3. h - hours
    • Example: 2h for 2 hours
  4. d - days
    • Example: 1d for 25 hours and 7 minutes (approximated to 1 day)
  5. w - weeks
    • Example: 1w for 7.5 days (approximated to 1 week)
  6. mo - months
    • Example: 1mo for 13 months and 2 days (approximated to 1 month)
  7. y - years
    • Example: 2y for 25 months (approximated to 2 years)

Default refresh_interval: 0 (refresh on every update).

Referense:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant