Skip to main content

RootGuidConverter

Constructors

new RootGuidConverter()

new RootGuidConverter(): RootGuidConverter

Returns

RootGuidConverter

Methods

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.