Java Native Functions: com.teracloud.streams.datetime.convert
- <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.