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

Formats the given civil&hyphen;time value into a string value of the following format&colon;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
FormatCivilTime(xref:absl/CivilMonth.adoc[CivilMonth] c);
----

== Description

Type &verbar; Format &hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen; CivilSecond &verbar; YYYY&hyphen;MM&hyphen;DDTHH&colon;MM&colon;SS CivilMinute &verbar; YYYY&hyphen;MM&hyphen;DDTHH&colon;MM CivilHour &verbar; YYYY&hyphen;MM&hyphen;DDTHH CivilDay &verbar; YYYY&hyphen;MM&hyphen;DD CivilMonth &verbar; YYYY&hyphen;MM CivilYear &verbar; YYYY

Example&colon;

absl&colon;&colon;CivilDay d &equals; absl&colon;&colon;CivilDay(1969, 7, 20)&semi; std&colon;&colon;string day&lowbar;string &equals; absl&colon;&colon;FormatCivilTime(d)&semi; &sol;&sol; &quot;1969&hyphen;07&hyphen;20&quot;

== Return Value

The formatted civil&hyphen;time string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The civil&hyphen;time value to format&period;
|===


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