[#absl-ToTimeval-0c]
= xref:absl.adoc[absl]::ToTimeval
:relfileprefix: ../
:mrdocs:

`ToTimeval` overloads

== Synopses

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

Converts an `absl&colon;&colon;Duration` to a `timeval`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
timeval
xref:absl/ToTimeval-01.adoc[ToTimeval](xref:absl/Duration.adoc[Duration] d);
----

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

Converts an `absl&colon;&colon;Time` to a `timeval`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
timeval
xref:absl/ToTimeval-0d.adoc[ToTimeval](xref:absl/Time.adoc[Time] t);
----

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

== Return Value

The equivalent `timeval`&period;

== Parameters

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


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