Twig: Convert time format I have a video Object with a duration property formatted in SCORM 2004 time format. Like so: PT51M55S. How do i convert this into a human readable time format like: 51:55? date() does not seem to work obviously.
I'm not sure this is possible in Twig alone, but it should be easy enough in PHP.

To do that, you could write a Craft plugin that adds a custom Twig extension that has a ScormIt filter that uses PHP's DateInterval class to output it in the format that you're looking for.

That way, you could do something like:

{{ videoObject.duration|ScormIt }}