It recalculates all of the date components after you modify them. For example, if you do $test = new DateIntervalEnhanced('PT6000S');
, you can then do $test->recalculate()
and process the seconds into hours, minutes, and seconds.
In the example above, let's say you don't want any hours: you just want minutes and seconds. Do $test->recalculate('m');
and the conversion will leave all of the remaining hours, days, months, etc. as minutes.