Copyright © 2011-2017 Michael Truog
Version: 1.7.3 Feb 26 2018 16:46:19 ------------------------------------------------------------------------
Authors: Michael Truog (mjtruog [at] gmail (dot) com).
state() = #uuid_state{node_id = <<_:48>>, clock_seq = 0..16383, timestamp_type = timestamp_type_internal(), timestamp_last = integer()}
timestamp_type() = erlang | os | warp
timestamp_type_internal() = erlang_timestamp | os | warp
uuid() = <<_:128>>
get_v1_datetime(Value::timestamp_type() | state() | uuid() | erlang:timestamp()) -> string()
get_v1_datetime(Value::timestamp_type() | state() | uuid() | erlang:timestamp(), MicroSecondsOffset::integer()) -> string()
get_v1_time() -> non_neg_integer()
get_v1_time(Uuid_state::timestamp_type() | state() | uuid()) -> non_neg_integer()
get_v3(Data::binary()) -> uuid()
get_v3(Namespace::dns | url | oid | x500 | binary(), Data::binary() | iolist()) -> uuid()
get_v3_compat(Data::binary()) -> uuid()
get_v3_compat(Namespace::dns | url | oid | x500 | binary(), Data::binary() | iolist()) -> uuid()
get_v4() -> uuid()
get_v4(Cache::strong | cached | quickrand_cache:state()) -> uuid() | {uuid(), quickrand_cache:state()}
get_v4_urandom() -> uuid()
get_v5(Data::binary()) -> uuid()
get_v5(Namespace::dns | url | oid | x500 | binary(), Data::binary() | iolist()) -> uuid()
get_v5_compat(Data::binary()) -> uuid()
get_v5_compat(Namespace::dns | url | oid | x500 | binary(), Data::binary() | iolist()) -> uuid()
os
or warp
timestamp_type is used with a v1 UUID.
The v3, v4 and v5 UUIDs are supported for completeness.
is_uuid(X1::any()) -> boolean()
is_v1(Value::any()) -> boolean()
is_v3(Value::any()) -> boolean()
is_v4(Value::any()) -> boolean()
is_v5(Value::any()) -> boolean()
mac_address() -> [non_neg_integer()]
new(Pid::pid()) -> state()
new(Pid::pid(), Options::timestamp_type() | [{timestamp_type, timestamp_type()} | {mac_address, [non_neg_integer()]}]) -> state()
erlang
and os
, respectively).
If you want erlang's adjustment of time without enforcement of increasing
time values, use the warp
timestamp_type value with Erlang >= 18.0.
string_to_uuid(X1::string() | binary()) -> uuid()
test() -> ok
uuid_to_list(X1::uuid()) -> iolist()
uuid_to_string(Value::uuid()) -> string()
uuid_to_string(Value::uuid(), Option::standard | nodash | list_standard | list_nodash | binary_standard | binary_nodash) -> string() | binary()
Generated by EDoc, Feb 26 2018, 16:46:19.