Debian Codegraph @

libuuid/man/uuid_time.3.adoc

raw
1 //po4a: entry man manual
2 ////
3 Copyright 1999 Andreas Dilger ([email protected])
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8 1. Redistributions of source code must retain the above copyright
9 notice, and the entire permission notice in its entirety,
10 including the disclaimer of warranties.
11 2. Redistributions in binary form must reproduce the above copyright
12 notice, this list of conditions and the following disclaimer in the
13 documentation and/or other materials provided with the distribution.
14 3. The name of the author may not be used to endorse or promote
15 products derived from this software without specific prior
16 written permission.
17
18 THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
19 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
21 WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
22 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
24 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
28 USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
29 DAMAGE.
30
31 Created Wed Mar 10 17:42:12 1999, Andreas Dilger
32 ////
33 ifdef::neverdefined[---]
34
35 = uuid_time(3)
36 :doctype: manpage
37 :man manual: Programmer's Manual
38 :man source: util-linux {release-version}
39 :page-layout: base
40 :lib: libuuid
41 :firstversion: 2.15.1
42
43 == NAME
44
45 uuid_time - extract the time at which the UUID was created
46
47 == SYNOPSIS
48
49 *#include <uuid.h>*
50
51 *time_t uuid_time(const uuid_t __uu__, struct timeval *__ret_tv__)*
52
53 == DESCRIPTION
54
55 The *uuid_time*() function extracts the time at which the supplied time-based UUID _uu_ 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 *uuid_generate_time*(3) and *uuid_generate_time_safe*(3) functions. It may or may not work with UUIDs created by other mechanisms.
56
57 == RETURN VALUE
58
59 The time at which the UUID was created, in seconds since January 1, 1970 GMT (the epoch), is returned (see *time*(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 _ret_tv_ (see *gettimeofday*(2)).
60
61 == AUTHORS
62
63 Theodore Y. Ts'o
64
65 == SEE ALSO
66
67 *uuid*(3),
68 *uuid_clear*(3),
69 *uuid_compare*(3),
70 *uuid_copy*(3),
71 *uuid_generate*(3),
72 *uuid_is_null*(3),
73 *uuid_parse*(3),
74 *uuid_unparse*(3)
75
76 include::man-common/bugreports.adoc[]
77
78 include::man-common/footer-lib.adoc[]
79
80 ifdef::translation[]
81 include::man-common/translation.adoc[]
82 endif::[]