resqpy.olio.uuid.version_string

resqpy.olio.uuid.version_string(uuid_obj)[source]

Returns an integer string rendering of the time element of the uuid.

Parameters:

uuid_obj (uuid.UUID) – the uuid for which a string representation of the time component is required

Returns:

string (of digits)

Notes

this function has nothing to do with the uuid.version attribute, it is used to populate the version field of a resqml citation block; the time component of the uuid is the number of 100ns periods that have elapsed since October 1582 (when the Gregorian calendar was adopted), as a 60 bit integer