C++ Native Functions: com.teracloud.streams.datetime.convert

This page documents native functions that can be invoked from SPL, including the SPL interfaces that can be used to invoke each of the native functions.

Functions

public timestamp parseDateTime(rstring ts)

Convert formatted timestamp to SPL timestamp.

Parameters
ts

String timestamp to parse.

Returns

SPL timestamp.

public timestamp parseDateTime(rstring ts, boolean missingTimeExc)

Convert formatted timestamp to SPL timestamp.

Parameters
ts

String timestamp to parse.

missingTimeExc

Boolean flag to indicate whether to throw an exception if the timestamp does not include a time. The default is false.

Returns

SPL timestamp.