Skip to main content

RootGuidConverter

Constructors

new RootGuidConverter()

new RootGuidConverter(): RootGuidConverter

Returns

RootGuidConverter

Methods

parse()

static parse<T>(strData: string): T

Type Parameters

Type Parameter
T extends RootGuidType

Parameters

ParameterType
strDatastring

Returns

T


toMilliseconds()

static toMilliseconds(strData: string): number

Converts a GUID string to a timestamp in milliseconds since the ROOT_EPOCH.

Parameters

ParameterTypeDescription
strDatastringThe GUID string to extract the timestamp from.

Returns

number

The timestamp in milliseconds.

Throws

Will throw an error if the input string is null or invalid.


toRootGuidType()

static toRootGuidType(strData: string): RootGuidType

Parameters

ParameterType
strDatastring

Returns

RootGuidType