Siddhi Execution Time
The siddhi-execution-time extension is a Siddhi extension that provides time related functionality such as getting current time, current date, manipulating/formatting dates, etc.
- Versions 5.x and above with group id
- Versions 4.x and lower with group id
Latest API Docs
Latest API Docs is 5.0.3.
- currentDate (Function)
Function returns the system time in
- currentTime (Function)
Function returns system time in the
- currentTimestamp (Function)
When no argument is provided, function returns the system current timestamp in
yyyy-MM-dd HH:mm:ssformat, and when a timezone is provided as an argument, it converts and return the current system time to the given timezone format.
- date (Function)
Extracts the date part of a date or date-time and return it in
- dateAdd (Function)
Adds the specified time interval to a date.
- dateDiff (Function)
Returns difference between two dates in days.
- dateFormat (Function)
Formats the data in string or milliseconds format to the given date format.
- dateSub (Function)
Subtracts the specified time interval from the given date.
- dayOfWeek (Function)
Extracts the day on which a given date falls.
- extract (Function)
Function extracts a date unit from the date.
- timestampInMilliseconds (Function)
Returns the system time or the given time in milliseconds.
- utcTimestamp (Function)
Function returns the system current time in UTC timezone with
There are no other dependencies needed for this extension.
For installing this extension on various siddhi execution environments refer Siddhi documentation section on adding extensions.
Support and Contribution
We encourage users to ask questions and get support via StackOverflow, make sure to add the
siddhitag to the issue for better response.
If you find any issues related to the extension please report them on the issue tracker.
For production support and other contribution related information refer Siddhi Community documentation.