[#absl-ParseLenientCivilTime-0e] = xref:absl.adoc[absl]::ParseLenientCivilTime :relfileprefix: ../ :mrdocs: Parses any of the formats accepted by `absl::ParseCivilTime()`. Unlike `ParseCivilTime()`, the input string format does not need to match the target civil‐time type. Discrepancies are resolved as follows: * Extra components in the input string are ignored. * Missing components are defaulted to their minimum valid values. This behavior is consistent with civil‐time converting constructors. == Synopses Declared in `<absl/time/civil_time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-004.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilDay.adoc[CivilDay]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-004.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-00b.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilHour.adoc[CivilHour]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-00b.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-02.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilMinute.adoc[CivilMinute]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-02.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-06.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilMonth.adoc[CivilMonth]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-06.adoc[_» more..._]# Parses any of the formats accepted by `absl::ParseCivilTime()`. Unlike `ParseCivilTime()`, the input string format does not need to match the target civil‐time type. Discrepancies are resolved as follows: * Extra components in the input string are ignored. * Missing components are defaulted to their minimum valid values. This behavior is consistent with civil‐time converting constructors. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-0d.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilSecond.adoc[CivilSecond]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-0d.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:absl/ParseLenientCivilTime-04.adoc[ParseLenientCivilTime]( std::string_view s, xref:absl/CivilYear.adoc[CivilYear]* c); ---- [.small]#xref:absl/ParseLenientCivilTime-04.adoc[_» more..._]# == Return Value `true` upon successful parsing. == Parameters [cols="1,4"] |=== | Name| Description | *s* | The string to parse. | *c* | Output parameter receiving the parsed civil‐time value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#