Java Native Functions: com.ibm.streamsx.datetime.convert
Specialized toolkits - release 4.3.1.0-prod20190605 > com.ibm.streamsx.datetime 1.2.1 > com.ibm.streamsx.datetime.convert > Java 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.
- <string T> public int64 fromIso8601ToMillis(T date)
-
Convert a full ISO 8601 date to number of milliseconds since the epoch. A full ISO 8061 date looks like 2015-11-24T22:54:19.427Z, 2015-11-24T14:54:19.427-08:00, 2015-11-24T14:54:19.427-0800 or 2015-11-24T14:54:19.427-08. Returns a value that can be used with the type TimeMillis. The argument is trimmed of leading and trailing whitespace, if the result is an empty string then 0 is returned.
- public rstring toIso8601(int64 millis)
-
Convert a TimeMillis value to an full ISO 8061 date using UTC as the time zone.
- public rstring toIso8601(uint64 millis)
-
Convert a TimeMillis value to an full ISO 8061 date using UTC as the time zone.