Add Duration <-> iCal string conversion methods to ICalFormat
This is in line with similar methods for recurrence rules in here.
This is e.g. useful when interfacing with the native Android calendar API, which is a mix of parsed event properties and partial iCal strings.