Header menu logo Xanthos

WatchEvent Module

Functions for working with WatchEvent values.

Functions and values

Function or value Description

dataspecForEvent _arg1

Full Usage: dataspecForEvent _arg1

Parameters:
Returns: string option Some dataspec code if known, None for unknown events.

Maps a WatchEventType to its corresponding JV-Data specification code.

_arg1 : WatchEventType
Returns: string option

Some dataspec code if known, None for unknown events.

toRealtimeRequest event

Full Usage: toRealtimeRequest event

Parameters:
    event : WatchEvent - The watch event to convert.

Returns: WatchEventRealtimeRequest option Some request if the event type has a known dataspec, None otherwise.

Converts a WatchEvent to a WatchEventRealtimeRequest for JVRTOpen.

event : WatchEvent

The watch event to convert.

Returns: WatchEventRealtimeRequest option

Some request if the event type has a known dataspec, None otherwise.

tryExtractFromTime rawKey

Full Usage: tryExtractFromTime rawKey

Parameters:
    rawKey : string - The raw key string (expected format: yyyyMMdd...).

Returns: DateTime option Some DateTime if the first 8 characters parse as a date, None otherwise.

Attempts to extract a DateTime from common watch event keys.

rawKey : string

The raw key string (expected format: yyyyMMdd...).

Returns: DateTime option

Some DateTime if the first 8 characters parse as a date, None otherwise.

Type something to start searching.