SYNOPSIS use DateTime::Format::Duration::ISO8601; my $d = DateTime::Format::Duration::ISO8601->new; say $d->format_duration( DateTime::Duration->new(years=>3, months=>5, seconds=>10), ); # => P3Y5MT10S DESCRIPTION METHODS new format_duration($dur_obj) => str SEE ALSO DateTime::Format::ISO8601 to format DateTime object into ISO8601 date/time string. At the time of this writing, there is no support to format DateTime::Duration object, hence this module. DateTime::Format::Duration to format DateTime::Duration object using strftime-style formatting.