OPAL Time Functions¶
Time functions provide conversion to and from various time and date formats.
Function |
Description |
---|---|
Returns the absolute value of ‘val’. |
|
Calculate the arithmetic average of the input expression across the group, or of the scalar arguments if more than one. |
|
Returns the end time of the current bin (exclusive). |
|
Returns the size of the time bin that’s being aggregated. |
|
Returns the start time of the current bin (inclusive). |
|
Calculates the value difference of the argument in each time bin for each group. |
|
Calculates the amount of difference in a column in each time bin for each group. |
|
Calculate the average per-second derivative of the argument across the group. |
|
Convert one argument as a number of nanoseconds or a timestamp, or two arguments as start or stop timestamps, to a duration. |
|
The input is a number representing a number of hours, the output is that quantity as type duration. |
|
The input is a number representing a number of minutes, the output is that quantity as type duration. |
|
The input is a number representing a number of milliseconds, the output is that quantity as type duration. |
|
Returns a null value of type duration. |
|
The input is a number representing a number of seconds, the output is that quantity as type duration. |
|
Format a timestamp column according to the specified format string. |
|
Given a numeric value representing milliseconds since epoch, return a timestamp of that point in time. |
|
Given a numeric value representing nanoseconds since epoch, return a timestamp of that point in time. |
|
Given a numeric value representing seconds since epoch, return a timestamp of that point in time. |
|
Return the fast approximate median value of one column. |
|
Return the exact median value of one column. |
|
Returns the current time for which the query is executed as timestamp. |
|
Given a string describing the duration between two points in time, convert it to a duration. |
|
Parse an ISO8601 (YYYY-MM-DDTHH:MM:SSZ) formatted string as a timestamp. |
|
Parse a string value, whose format is specified by the |
|
Returns an approximated value for the specified percentile of the input expression across the group. |
|
Assuming a continuous distribution, return the value for the specified percentile of the input expression across the group. |
|
Assuming a discrete distribution, return the value for the specified percentile of the input expression across the group. |
|
Returns the latest time of the query time window. |
|
Returns the earliest time of the query time window. |
|
Calculate the average per-second rate of the argument across the group. |
|
Returns the value of the “Valid To” column, or null if the verb input dataset has no “Valid To” column. |
|
Returns the value of the timestamp column for each row. |
|
Calculate the standard deviation across the group. |
|
Calculate the sum of the argument across the group, or of the scalar arguments if more than one. |
|
Generate a single t-digest state out of an arbitrary number of numeric values. |
|
Returns a null value of type timestamp. |
|
Convert a duration to a number of days. |
|
Convert a duration to a number of hours. |
|
Convert a duration to a number of milliseconds. |
|
Convert a duration to a number of minutes. |
|
Convert a duration to a number of nanoseconds. |
|
Convert a duration to a number of seconds. |
|
Convert a duration to a number of weeks. |
|
Specify the validity period for each event for some verbs |