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.
For information on Siddhi and it's features refer Siddhi Documentation.
io.siddhi.extension.*
from here.org.wso2.extension.siddhi.*
from here.Latest API Docs is 5.0.8.
Function returns the system time in yyyy-MM-dd
format.
Function returns system time in the HH:mm:ss
format.
When no argument is provided, function returns the system current timestamp in yyyy-MM-dd HH:mm:ss
format, and when a timezone is provided as an argument, it converts and return the current system time to the given timezone format.
Extracts the date part of a date or date-time and return it in yyyy-MM-dd
format.
Adds the specified time interval to a date.
Returns difference between two dates in days.
Formats the data in string or milliseconds format to the given date format.
Subtracts the specified time interval from the given date.
Extracts the day on which a given date falls.
Function extracts a date unit from the date.
Returns the system time or the given time in milliseconds.
Converts source datetime to provided target timezone and return the datetime string
Function returns the system current time in UTC timezone with given date format which defaults to yyyy-MM-dd HH:mm:ss
if not provided.
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.
We encourage users to ask questions and get support via StackOverflow, make sure to add the siddhi
tag 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.