Replies: 1 comment
-
@freekmurze sorry for initially posting in the wrong place and thank you for moving it! Also, if you want any help on the parsing portion, I have it mostly done. My code just has a dependency on Carbon that I'll need to strip out. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be nice to be able to translate to/from the ISO-8601 time interval standard.
I'm surprised how little support there is in PHP for this as it's a nice, concise way of expressing a period of time.
thephpleague
's package has partial support but doesn't allow for using durations in the start (P1M/2022-02-01T00:00:00Z
) or end (2022-01-01T00:00:00Z/P1M
) nor for using a condensed datetime for the end such as2022-01-01T00:00:00Z/15
which expands to2022-01-01T00:00:00Z/2022-01-15T00:00:00Z
.The standard doesn't allow for transferring bounds but they could be defined in a parameter.
Beta Was this translation helpful? Give feedback.
All reactions