I try to parse strings like mentioned in the title to Duration or something similar.
Things like Duration.parse() don't work the way I want it to work.
Strings like "10s" or "10h" are given. I need a solution to use that string and convert it to something like Duration or something similar.
Edit: To clarify my needs: I don't want to use "Duration-like" strings with "PTxxx" nor I want to parse those strings on my own. Somewhere out there should be a already implemented solution for that imho.
Any ideas?