Skip to main content

PQL47 (PQL Function Library - CPM 4.7)

SECONDS

Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4 CELONIS 4.5 CELONIS 4.6 CELONIS 4.7

Description

Returns the seconds of a given date.

Supported input column types: DATE

Output column type: INT

Syntax
SECONDS ( table.column) 
NULL handling

If any parameter is NULL, the result is NULL as well.

Example

[1] Simple example for the SECONDS operator.

Query

Column1

SECONDS ( "Table1"."Column1" )

Input

Output

Table1

Column1 : DATE

Mon Jan 01 2018 00:00:00.000

Mon Jan 01 2018 00:01:25.000

Mon Jan 01 2018 00:01:50.700

Result

Column1 : INT

0

25

50