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

Parses the command&hyphen;line flag string representation `text` into a Time value&period; Time flags must be specified in a format that matches absl&colon;&colon;RFC3339&lowbar;full&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/Time.adoc[Time]* t,
    std::string* error);
----

== Description

For example&colon;

&hyphen;&hyphen;start&lowbar;time&equals;2016&hyphen;01&hyphen;02T03&colon;04&colon;05&period;678&plus;08&colon;00

Note&colon; A UTC offset (or &apos;Z&apos; indicating a zero&hyphen;offset from UTC) is required&period;

Additionally, if you&apos;d like to specify a time as a count of seconds&sol;milliseconds&sol;etc from the Unix epoch, use an absl&colon;&colon;Duration flag and add that duration to absl&colon;&colon;UnixEpoch() to get an absl&colon;&colon;Time&period;

== Return Value

`true` upon successful parsing&period;

== Parameters

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


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