- All Implemented Interfaces:
- org.wso2.siddhi.core.executor.ExpressionExecutor, org.wso2.siddhi.core.util.extension.holder.EternalReferencedHolder, org.wso2.siddhi.core.util.snapshot.Snapshotable
public class DateAddFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
dateAdd(dateValue,expr,unit,dateFormat)/dateAdd(dateValue,expr,unit)/dateAdd(timestampInMilliseconds,expr,unit)
Returns added specified time interval to a date.
dateValue - value of date. eg: "2014-11-11 13:23:44.657", "2014-11-11" , "13:23:44.657"
unit - Which part of the date format you want to manipulate. eg: "MINUTE" , "HOUR" , "MONTH" , "YEAR" , "QUARTER" ,
"WEEK" , "DAY" , "SECOND"
expr - In which amount, selected date format part should be incremented. eg: 2 ,5 ,10 etc
dateFormat - Date format of the provided date value. eg: yyyy-MM-dd HH:mm:ss.SSS
timestampInMilliseconds - date value in milliseconds.(from the epoch) eg: 1415712224000L
Accept Type(s) for dateAdd(dateValue,expr,unit,dateFormat):
dateValue : STRING
expr : LONG
unit : STRING
dateFormat : STRING
Accept Type(s) for dateAdd(timestampInMilliseconds,expr,unit):
expr : LONG
unit : STRING
timestampInMilliseconds : LONG
Return Type(s): STRING