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

Implement ISO 8601 Durations for preview and pastview #4

Closed
naimo84 opened this issue Nov 28, 2021 · 0 comments
Closed

Implement ISO 8601 Durations for preview and pastview #4

naimo84 opened this issue Nov 28, 2021 · 0 comments

Comments

@naimo84
Copy link
Owner

naimo84 commented Nov 28, 2021

Durations define the amount of intervening time in a time interval and are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W

  • P is the duration designator (for period) placed at the start of the duration representation.
    • Y is the year designator that follows the value for the number of years.
    • M is the month designator that follows the value for the number of months.
    • W is the week designator that follows the value for the number of weeks.
    • D is the day designator that follows the value for the number of days.
  • T is the time designator that precedes the time components of the representation.
    • H is the hour designator that follows the value for the number of hours.
    • M is the minute designator that follows the value for the number of minutes.
    • S is the second designator that follows the value for the number of seconds.

For example, "P3Y6M4DT12H30M5S" represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five seconds".
https://en.wikipedia.org/wiki/ISO_8601#Durations

naimo84 added a commit that referenced this issue Nov 28, 2021
naimo84 added a commit to naimo84/node-red-contrib-ical-events that referenced this issue Nov 28, 2021
@naimo84 naimo84 closed this as completed Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant