C++ Native Functions: com.ibm.streamsx.inet

IBMStreams com.ibm.streamsx.inet Toolkit > com.ibm.streamsx.inet 3.4.0 > com.ibm.streamsx.inet > C++ Native Functions

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 int64 parseDatestring(rstring datestring)

This function converts a string that specifies a date and time into a 64-bit integer corresponding to the 'unix epoch' value of that date and time, which is the number of seconds since midnight on January 1st, 1970 in Greenwich, England. It recognizes all of the date and time formats allowed in HTTP messages. For example:

Sun, 06 Nov 1994 08:49:37 GMT

Sunday, 06-Nov-94 08:49:37 GMT

Sun Nov 6 08:49:37 1994

06 Nov 1994 08:49:37 GMT

06-Nov-94 08:49:37 GMT

Nov 6 08:49:37 1994

06 Nov 1994 08:49:37

06-Nov-94 08:49:37

1994 Nov 6 08:49:37

GMT 08:49:37 06-Nov-94 Sunday

94 6 Nov 08:49:37

1994 Nov 6

06-Nov-94

Sun Nov 6 94

1994.Nov.6

Sun/Nov/6/94/GMT

Sun, 06 Nov 1994 08:49:37 CET

06 Nov 1994 08:49:37 EST

Sun, 12 Sep 2004 15:05:58 -0700

Sat, 11 Sep 2004 21:32:11 +0200

20040912 15:05:58 -0700

20040911 +0200

For details, see https://curl.haxx.se/libcurl/c/curl_getdate.html.