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

Converts an `absl&colon;&colon;Time` to a count of nanoseconds since the Unix epoch&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int64&lowbar;t
ToUnixNanos(xref:absl/Time.adoc[Time] t);
----

== Description

Converts an `absl&colon;&colon;Time` to a variety of other representations&period; See https&colon;&sol;&sol;unicode&hyphen;org&period;github&period;io&sol;icu&sol;userguide&sol;datetime&sol;universaltimescale&period;html

Note that these operations round down toward negative infinity where necessary to adjust to the resolution of the result type&period; Beware of possible time&lowbar;t over&sol;underflow in ToTime&lcub;T,val,spec&rcub;() on 32&hyphen;bit platforms&period;

== Return Value

The count of nanoseconds since the Unix epoch&period;

== Parameters

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


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