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

`FromChrono` overloads

== Synopses

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

Converts a std&colon;&colon;chrono&colon;&colon;hours value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-03.adoc[FromChrono](std::chrono::hours const& d);
----

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

Converts a std&colon;&colon;chrono&colon;&colon;microseconds value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-00.adoc[FromChrono](std::chrono::microseconds const& d);
----

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

Converts a std&colon;&colon;chrono&colon;&colon;milliseconds value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-0a.adoc[FromChrono](std::chrono::milliseconds const& d);
----

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

Converts a std&colon;&colon;chrono&colon;&colon;minutes value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-0f.adoc[FromChrono](std::chrono::minutes const& d);
----

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

Converts a std&colon;&colon;chrono&colon;&colon;nanoseconds value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-05.adoc[FromChrono](std::chrono::nanoseconds const& d);
----

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

Converts a std&colon;&colon;chrono&colon;&colon;seconds value to an absl&colon;&colon;Duration&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:absl/Duration.adoc[Duration]
xref:absl/FromChrono-0d3.adoc[FromChrono](std::chrono::seconds const& d);
----

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

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


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

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

== Return Value

* The equivalent `absl&colon;&colon;Duration`&period;
* The equivalent time&period;

== Parameters

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


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