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

Parses a command&hyphen;line flag string representation `text` into a Duration value&period; Duration flags must be specified in a format that is valid input for `absl&colon;&colon;ParseDuration()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AbslParseFlag(
    std::string&lowbar;view text,
    xref:absl/Duration.adoc[Duration]* dst,
    std::string* error);
----

== Return Value

`true` upon successful parsing&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *text*
| The flag string to parse&period;
| *dst*
| Output parameter receiving the parsed duration&period;
| *error*
| Output parameter receiving an error message on failure&period;
|===


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