parseDuration

Checks and fixes Event.duration values with incorrect format which can't be parsed by ical4j. Searches for values like "1H" and "3M" and groups them together in a standards-compliant way.

Return

duration value in RFC 2445 format ("PT3600S" when the argument was "P3600S")

Parameters

durationStr

value from the content provider (like "PT3600S" or "P3600S")