[#absl-FromChrono-0d6]
= xref:absl.adoc[absl]::FromChrono
:relfileprefix: ../
:mrdocs:

Converts a std&colon;&colon;chrono&colon;&colon;system&lowbar;clock&colon;&colon;time&lowbar;point to an absl&colon;&colon;Time&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Time.adoc[Time]
FromChrono(std::chrono::system&lowbar;clock::time&lowbar;point const& tp);
----

== Description

Example&colon;

auto tp &equals; std&colon;&colon;chrono&colon;&colon;system&lowbar;clock&colon;&colon;from&lowbar;time&lowbar;t(123)&semi; absl&colon;&colon;Time t &equals; absl&colon;&colon;FromChrono(tp)&semi; &sol;&sol; t &equals;&equals; absl&colon;&colon;FromTimeT(123)

== Return Value

The equivalent time&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tp*
| The time point to convert&period;
|===


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