man-pages/man3/uuid_time.3.html
2021-03-31 01:06:50 +01:00

106 lines
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of UUID_TIME</TITLE>
</HEAD><BODY>
<H1>UUID_TIME</H1>
Section: Libuuid API (3)<BR>Updated: May 2009<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
uuid_time - extract the time at which the UUID was created
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
<B>#include &lt;<A HREF="file:///usr/include/uuid.h">uuid.h</A>&gt;</B>
<B>time_t uuid_time(uuid_t </B><I>uu</I><B>, struct timeval *</B><I>ret_tv</I><B>)</B>
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B>uuid_time</B>
function extracts the time at which the supplied time-based UUID
<I>uu</I>
was created. Note that the UUID creation time is only encoded within
certain types of UUIDs. This function can only reasonably expect to
extract the creation time for UUIDs created with the
<B><A HREF="/cgi-bin/man/man2html?3+uuid_generate_time">uuid_generate_time</A></B>(3)
and
<B><A HREF="/cgi-bin/man/man2html?3+uuid_generate_time_safe">uuid_generate_time_safe</A></B>(3)
functions. It may or may not work with UUIDs created by other mechanisms.
<A NAME="lbAE">&nbsp;</A>
<H2>RETURN VALUES</H2>
The time at which the UUID was created, in seconds since January 1, 1970 GMT
(the epoch), is returned (see
<B><A HREF="/cgi-bin/man/man2html?2+time">time</A></B>(2)).
The time at which the UUID was created, in seconds and microseconds since
the epoch, is also stored in the location pointed to by
<I>ret_tv</I>
(see
<B><A HREF="/cgi-bin/man/man2html?2+gettimeofday">gettimeofday</A></B>(2)).
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
Theodore Y. Ts'o
<A NAME="lbAG">&nbsp;</A>
<H2>AVAILABILITY</H2>
<B>libuuid</B>
is part of the util-linux package since version 2.15.1 and is available from
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3+uuid">uuid</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_clear">uuid_clear</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_compare">uuid_compare</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_copy">uuid_copy</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_generate">uuid_generate</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_is_null">uuid_is_null</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_parse">uuid_parse</A></B>(3),
<B><A HREF="/cgi-bin/man/man2html?3+uuid_unparse">uuid_unparse</A></B>(3)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">RETURN VALUES</A><DD>
<DT id="5"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="6"><A HREF="#lbAG">AVAILABILITY</A><DD>
<DT id="7"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:59 GMT, March 31, 2021
</BODY>
</HTML>