[#absl-FormatTime-04]
= xref:absl.adoc[absl]::FormatTime
:relfileprefix: ../
:mrdocs:

`FormatTime` overloads

== Synopses

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

Formats the given time using the RFC3339&lowbar;full format in the local time zone&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/FormatTime-0a.adoc[FormatTime](xref:absl/Time.adoc[Time] t);
----

[.small]#xref:absl/FormatTime-0a.adoc[_» more&period;&period;&period;_]#

Formats the given time using the RFC3339&lowbar;full format in the given time zone&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/FormatTime-01.adoc[FormatTime](
    xref:absl/Time.adoc[Time] t,
    xref:absl/TimeZone.adoc[TimeZone] tz);
----

[.small]#xref:absl/FormatTime-01.adoc[_» more&period;&period;&period;_]#

Formats the given `absl&colon;&colon;Time` in the `absl&colon;&colon;TimeZone` according to the provided format string&period; Uses strftime()&hyphen;like formatting options, with the following extensions&colon;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
xref:absl/FormatTime-05.adoc[FormatTime](
    std::string&lowbar;view format,
    xref:absl/Time.adoc[Time] t,
    xref:absl/TimeZone.adoc[TimeZone] tz);
----

[.small]#xref:absl/FormatTime-05.adoc[_» more&period;&period;&period;_]#

== Return Value

The formatted time string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *t*
| The time to format&period;
| *tz*
| The time zone to format in&period;
| *format*
| The strftime()&hyphen;like format string&period;
|===


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