Namespace com.teracloud.streams.datetime
Functions
- currentTimeMillis(): Return the number of milliseconds since the epoch (1970-01-01 00:00:00.000). Returns a value that can be used with the type TimeMillis.
- currentTimestamp(): Get the current time using getTimestamp().
- now(): Get the current time using getTimestamp().
- toTimeMillis(timestamp): Get a TimeMillis value from a SPL timestamp value.
- toTimestamp(TimeMillis): Get a SPL timestamp from a TimeMillis.
- toTimestamp(TimeMillis, int32): Get a SPL timestamp from a TimeMillis and a machine identifier.
Types
- TimeMillis: Milliseconds since epoch (1970-01-01 00:00:00.000). Useful when interfacing to Java and Javascript.