IBM Streams 4.2.1

Namespace spl.time

This namespace contains components for handling times and timestamps.

For example, the following SPL functions provide some common operations on time:
  • getTimestamp, to get the POSIX time, that is the number of seconds elapsed since the Epoch (00:00:00 UTC, January 1, 1970)
  • time or gmtime, to convert POSIX time to broken-down time (using the Sys.tm type)
  • toTimestamp to convert broken-down time to POSIX time
  • strftime to convert broken-down time to a string representation
  • strptime to convert a string representation to broken-down time.

By default this namespace is in scope for SPL programs, so no explicit use statement is required to use them.

Functions