Using datetime in Painless
Serverless Stack
Datetimes in Painless use the standard Java libraries and are available through the Painless Shared API. Most of the classes from the following Java packages are available to use in Painless scripts:
Refer to the following pages to learn about performing datetime operations in Painless.