title: DataWeave 2.0 get time difference as a period
body: <p>I have DataWeave code that looks like below:</p>
  <pre><code>%dw 2.0
  output application/java
  var timezone = (now() &gt;&gt; &quot;Pacific/Auckland&quot;) as String {format: &quot;XXX&quot;}
  var t1 = '08:00:00.000' ++ timezone
  var t2 = '21:00:00.000' ++ timezone
  ---
  (|PT24H| - (t2-t1)) 
  </code></pre>
  <p>This results in a response in seconds as 39600 which is 11 hours. I want the response to be as |PT11H| rather than 39600. It works when we convert seconds to hours when dividing by 3600 to 11 hours but we need that to be like |PT11H| rather than 39600.</p>
  <p>Above input t1 and t2 comes from config. we can't change the setup.</p>