Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use EPOCH time (in seconds) as a parameter in pipeline

Hi,

I need to extract the current EPOCH time (in seconds) and use it as a parameter in Streamsets pipeline and use it for pulling incremental data from a database origin.

I am trying to use the below expression to get epoch time but it is giving in milliseconds ${time:dateTimeToMilliseconds(time:now())}. Trying to use below but its not working: ${time:dateTimeToMilliseconds(time:now())/1000} but not working.

Please suggest how to extract current EPOCH time in seconds and how to use that in an expression in parameter

Use EPOCH time (in seconds) as a parameter in pipeline

Hi,

I need to extract the current EPOCH time (in seconds) and use it as a parameter in Streamsets pipeline and use it for pulling incremental data from a database origin.

I am trying to use the below expression to get epoch time but it is giving in milliseconds ${time:dateTimeToMilliseconds(time:now())}. Trying to use below but its not working: ${time:dateTimeToMilliseconds(time:now())/1000} but not working.

Please suggest how to extract current EPOCH time in seconds and how to use that in an expression in parameter

Use current EPOCH time (in seconds) as a parameter in pipeline

Hi,

I need to extract the current EPOCH time (in seconds) and use it as a parameter in Streamsets pipeline and use it for pulling incremental data from a database origin.

I am trying to use the below expression to get epoch time but it is giving in milliseconds ${time:dateTimeToMilliseconds(time:now())}. Trying to use below but its not working: ${time:dateTimeToMilliseconds(time:now())/1000} but not working.

Please suggest how to extract current EPOCH time in seconds and how to use that in an expression in parameter parameter