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

Converts an absl&colon;&colon;Time to a std&colon;&colon;chrono&colon;&colon;system&lowbar;clock&colon;&colon;time&lowbar;point&period; If overflow would occur, the returned value will saturate at the min&sol;max time point value instead&period;

== Synopsis

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

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

== Description

Example&colon;

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

== Return Value

The equivalent system&hyphen;clock time point&period;

== Parameters

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


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