to Rfc5545Duration
Converts a TemporalAmount to an RFC5545 duration value, which only uses weeks, days, hours, minutes and seconds. Because years and months can't be used, they're converted to weeks/days using the duration's position in the calendar.
Return
RFC5545 duration value
Parameters
position
the duration's position in the calendar