Debian Codegraph @

libuuid/man/uuid_time.3

raw
1 '\" t
2 .\" Title: uuid_time
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.20
5 .\" Date: 2026-05-18
6 .\" Manual: Programmer's Manual
7 .\" Source: util-linux 2.42.1
8 .\" Language: English
9 .\"
10 .TH "UUID_TIME" "3" "2026-05-18" "util\-linux 2.42.1" "Programmer\*(Aqs Manual"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 uuid_time \- extract the time at which the UUID was created
32 .SH "SYNOPSIS"
33 .sp
34 \fB#include <uuid.h>\fP
35 .sp
36 \fBtime_t uuid_time(const uuid_t \fIuu\fP, struct timeval *\fIret_tv\fP)\fP
37 .SH "DESCRIPTION"
38 .sp
39 The \fBuuid_time\fP() function extracts the time at which the supplied time\-based UUID \fIuu\fP 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 \fBuuid_generate_time\fP(3) and \fBuuid_generate_time_safe\fP(3) functions. It may or may not work with UUIDs created by other mechanisms.
40 .SH "RETURN VALUE"
41 .sp
42 The time at which the UUID was created, in seconds since January 1, 1970 GMT (the epoch), is returned (see \fBtime\fP(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 \fIret_tv\fP (see \fBgettimeofday\fP(2)).
43 .SH "AUTHORS"
44 .sp
45 Theodore Y. Ts\(cqo
46 .SH "SEE ALSO"
47 .sp
48 \fBuuid\fP(3),
49 \fBuuid_clear\fP(3),
50 \fBuuid_compare\fP(3),
51 \fBuuid_copy\fP(3),
52 \fBuuid_generate\fP(3),
53 \fBuuid_is_null\fP(3),
54 \fBuuid_parse\fP(3),
55 \fBuuid_unparse\fP(3)
56 .SH "REPORTING BUGS"
57 .sp
58 For bug reports, use the \c
59 .URL "https://github.com/util\-linux/util\-linux/issues" "issue tracker" "."
60 .SH "AVAILABILITY"
61 .sp
62 The \fBlibuuid\fP library is part of the util\-linux package since version 2.15.1. It can be downloaded from \c
63 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."