Replies: 2 comments 2 replies
-
The durations are defined in ISO 8601
https://en.m.wikipedia.org/wiki/ISO_8601#Durations
…On Sat, May 8, 2021, 10:13 AM acrouse-y ***@***.***> wrote:
Almost all of the data I use for validTime has been of the format
".../PT9H" where the specific value is valid for n hours (9 in this case).
Yesterday, I received a single occurrence of windSpeed and windGust (one
for each) with a validTime formatted as ".../P1DT3H". Is this intended to
mean 1 day + 3 hours? The reference material on this portion of the tag has
not clarified my understanding.
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#407>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMIJCKJPGMRJ3RJKUXJ3U6TTMVILNANCNFSM44NMN2RA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Expanding a bit on the difference between the two... Anything that appears after the P and before the T are values of a day length or longer (Year Month Week Day). After the T are values less than a day (Hours Minutes Seconds). If the T appears immediately after the P, that means none of the longer elements appear. So, yes, the correct interpretation of the latter validTime is 1 day 3 hours. Not sure what you are processing them with, but PHP has a class (DateInterval) that converts ISO 8601 into something easily usable. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Almost all of the data I use for validTime has been of the format ".../PT9H" where the specific value is valid for n hours (9 in this case).
Yesterday, I received a single occurrence of windSpeed and windGust (one for each) with a validTime formatted as ".../P1DT3H". Is this intended to mean 1 day + 3 hours? The reference material on this portion of the tag has not clarified my understanding.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions