- 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 ExtractAttributesFunctionExtension
extends org.wso2.siddhi.core.executor.function.FunctionExecutor
Returns date attributes from a date expression.
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"
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
locale - optional parameter which represents a specific geographical, political or cultural region.
eg: "en_US", "fr_FR"
Accept Type(s)
extract(unit,dateValue,dateFormat)
extract(unit,dateValue)
extract(timestampInMilliseconds,unit)
extract(unit,dateValue,dateFormat,locale)
extract(timestampInMilliseconds,unit,locale)
unit : STRING
dateValue : STRING
dateFormat : STRING
timestampInMilliseconds : LONG
locale : STRING
Return Type(s): INT