[#absl-FormatDuration]
= xref:absl.adoc[absl]::FormatDuration
:relfileprefix: ../
:mrdocs:

Returns a string representing the duration in the form &quot;72h3m0&period;5s&quot;&period; Returns &quot;inf&quot; or &quot;&hyphen;inf&quot; for &plus;&sol;&hyphen; `InfiniteDuration()`&period;

== Synopsis

Declared in `&lt;absl&sol;time&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
FormatDuration(xref:absl/Duration.adoc[Duration] d);
----

== Return Value

The formatted duration string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *d*
| The duration to format&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
