Back to Elasticsearch

Using datetime in Painless [painless-datetime]

docs/reference/scripting-languages/painless/using-datetime-in-painless.md

9.4.02.0 KB
Original Source

Using datetime in Painless [painless-datetime]

Datetime API [_datetime_api]

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:

Datetime operations

Refer to the following pages to learn about performing datetime operations in Painless.