otp.ops.uuid#
- uuid()#
Returns a unique identifier in form:
[mac_address].[timestamp].[process_id].[seq_num], where:mac_address- is the mac address of the machinetimestamp- the current time expressed as the number of milliseconds since the UNIX epochprocess_id- process IDseq_num- is a unique to a process integer that is incremented per call to this function
- Return type:
Examples
>>> data = otp.Tick(UUID=otp.ops.uuid()) >>> otp.run(data) Time UUID 0 2003-12-01 000000000000.1793903402585.12187.1
See also
UUID OneTick function