[#absl-ParseLenientCivilTime-0d]
= xref:absl.adoc[absl]::ParseLenientCivilTime
:relfileprefix: ../
:mrdocs:

Parses any of the formats accepted by `absl&colon;&colon;ParseCivilTime()`&period; Unlike `ParseCivilTime()`, the input string format does not need to match the target civil&hyphen;time type&period; Discrepancies are resolved as follows&colon; &ast; Extra components in the input string are ignored&period; &ast; Missing components are defaulted to their minimum valid values&period; This behavior is consistent with civil&hyphen;time converting constructors&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ParseLenientCivilTime(
    std::string&lowbar;view s,
    xref:absl/CivilSecond.adoc[CivilSecond]* c);
----

== Description

Example&colon;

absl&colon;&colon;CivilDay d&semi; bool ok &equals; absl&colon;&colon;ParseLenientCivilTime(&quot;1969&hyphen;07&hyphen;20&quot;, &amp;d)&semi; &sol;&sol; OK ok &equals; absl&colon;&colon;ParseLenientCivilTime(&quot;1969&hyphen;07&hyphen;20T10&quot;, &amp;d)&semi; &sol;&sol; OK&colon; T10 floored ok &equals; absl&colon;&colon;ParseLenientCivilTime(&quot;1969&hyphen;07&quot;, &amp;d)&semi; &sol;&sol; OK&colon; day defaults to 1

== Return Value

`true` upon successful parsing&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The string to parse&period;
| *c*
| Output parameter receiving the parsed civil&hyphen;time value&period;
|===


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