blob: d798e6542e79a156bc2c61a228baf7ceb59fd44b [file] [log] [blame]
Theodore Ts'o4eca93b1999-03-16 20:31:56 +00001.\" Copyright 1999 Andreas Dilger (adilger@enel.ucalgary.ca)
2.\"
Theodore Ts'o9dd97ae2004-04-03 11:24:10 -05003.\" %Begin-Header%
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, and the entire permission notice in its entirety,
9.\" including the disclaimer of warranties.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\" notice, this list of conditions and the following disclaimer in the
12.\" documentation and/or other materials provided with the distribution.
13.\" 3. The name of the author may not be used to endorse or promote
14.\" products derived from this software without specific prior
15.\" written permission.
Theodore Ts'o4eca93b1999-03-16 20:31:56 +000016.\"
Theodore Ts'o9dd97ae2004-04-03 11:24:10 -050017.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
18.\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
20.\" WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
21.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
23.\" OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
27.\" USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
28.\" DAMAGE.
29.\" %End-Header%
Theodore Ts'o4eca93b1999-03-16 20:31:56 +000030.\"
31.\" Created Wed Mar 10 17:42:12 1999, Andreas Dilger
32.TH UUID_TIME 3 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
33.SH NAME
34uuid_time \- extract the time at which the UUID was created
35.SH SYNOPSIS
36.nf
37.B #include <uuid/uuid.h>
38.sp
39.BI "time_t uuid_time(uuid_t " uu ", struct timeval *" ret_tv )
40.fi
41.SH DESCRIPTION
42The
43.B uuid_time
44function extracts the time at which the supplied UUID
45.I uu
46was created. Note that the UUID creation time is encoded within the UUID,
47and this function can only reasonably expect to extract the creation time
48for UUIDs created with the
49.BR uuid_generate (3)
50function. It may or may not work with UUIDs created by OSF DCE
51.BR uuidgen .
52.SH "RETURN VALUES"
53The time at which the UUID was created, in seconds since January 1, 1970 GMT
54(the epoch), is returned (see
55.BR time "(2))."
56The time at which the UUID was created, in seconds and microseconds since
57the epoch, is also stored in the location pointed to by
58.I ret_tv
59(see
60.BR gettimeofday "(2))."
61.SH AUTHOR
62.B uuid_time
63was written by Theodore Y. Ts'o for the ext2 filesystem utilties.
64.SH AVAILABILITY
65.B uuid_time
Theodore Ts'o14fc5a32001-05-12 15:32:46 +000066is part of libuuid from the e2fsprogs package and is available from
67http://e2fsprogs.sourceforge.net.
Theodore Ts'o4eca93b1999-03-16 20:31:56 +000068.SH "SEE ALSO"
69.BR libuuid (3),
70.BR uuid_clear (3),
71.BR uuid_compare (3),
72.BR uuid_copy (3),
73.BR uuid_generate (3),
74.BR uuid_is_null (3),
75.BR uuid_parse (3),
76.BR uuid_unparse (3)