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

Like ParseTime() above, but if the format string does not contain a UTC offset specification (%z&sol;%Ez&sol;%E&ast;z) then the input is interpreted in the given TimeZone&period; This means that the input, by itself, does not identify a unique instant&period; Being time&hyphen;zone dependent, it also admits the possibility of ambiguity or non&hyphen;existence, in which case the &quot;pre&quot; time (as defined by TimeZone&colon;&colon;TimeInfo) is returned&period; For these reasons we recommend that all date&sol;time strings include a UTC offset so they&apos;re context independent&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ParseTime(
    std::string&lowbar;view format,
    std::string&lowbar;view input,
    xref:absl/TimeZone.adoc[TimeZone] tz,
    xref:absl/Time.adoc[Time]* time,
    std::string* err);
----

== Return Value

`true` upon successful parsing&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *format*
| The strftime()&hyphen;like format string&period;
| *input*
| The string to parse&period;
| *tz*
| The time zone to interpret the input in when no offset is present&period;
| *time*
| Output parameter receiving the parsed time&period;
| *err*
| Output parameter receiving an error message on failure&period;
|===


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