Copyright © 2015-2017 Michael Truog
Version: 1.7.1 Feb 26 2018 17:29:20 ------------------------------------------------------------------------
Authors: Michael Truog (mjtruog [at] gmail (dot) com).
datetime/1 |
Provide an ISO8601 datetime in UTC based on the time stored in the transaction id.. |
datetime/2 |
Provide an ISO8601 datetime in UTC based on the time stored in the transaction id with an offset in microseconds.. |
from_string/1 |
Return a transaction id as a binary UUID (16 bytes).. |
increment/1 |
Increment the transaction id while preserving uniqueness.Increment the v1 UUID's clock_seq (14bit) integer for 16384 possible v1 UUID values based on a single transaction id. |
microseconds/0 |
Microseconds since the UNIX epoch.The integer value returned uses the same time source used for creating TransId v1 UUIDs, though the return values are not strictly monotonically increasing on Erlang >= 18.0 if the OS time is changed (TransId v1 UUID time values are strictly monotonically increasing when comparing TransId values created by the same service Erlang process). |
microseconds/1 |
Microseconds since the UNIX epoch.The integer value returned is always increasing for each service process that created the TransId (with the service process uniquely represented in the node_id section of the v1 UUID). |
to_string/1 |
Return the transaction id in a standard string format.. |
to_string/2 |
Return the transaction id in a string format.. |
datetime(TransId::uuid:uuid()) -> string()
datetime(TransId::uuid:uuid(), MicroSecondsOffset::integer()) -> string()
from_string(String::string() | binary()) -> uuid:uuid()
increment(TransId::uuid:uuid()) -> uuid:uuid()
microseconds() -> non_neg_integer()
microseconds(TransId::uuid:uuid()) -> non_neg_integer()
to_string(TransId::uuid:uuid()) -> string()
to_string(TransId::uuid:uuid(), Format::standard | nodash | list_standard | list_nodash | binary_standard | binary_nodash) -> string() | binary()
Generated by EDoc, Feb 26 2018, 17:29:20.