| Package | Description |
|---|---|
| com.comtrade.ecm.engine.datatypes |
Additional DataTypes.
All of them must implement DataType interface. |
| Modifier and Type | Method and Description |
|---|---|
Date |
Date.add(long amountToAdd,
Date.Unit unit)
Changes a current value of an object for
amountToAdd units of unit |
static Date |
Date.now()
Creating a date with a current
Date value. |
static Date |
Date.of(Date date)
Creating a date from a
Date. |
static Date |
Date.of(DateTime dateTime)
Creating a date from a
DateTime |
static Date |
Date.of(java.time.LocalDate localDate)
Creates a date from a
LocalDate |
Date |
DateTime.toDate() |
Date |
Date.toEndOfYear() |
Date |
Date.toStartOfYear() |
| Modifier and Type | Method and Description |
|---|---|
int |
DateTime.compareTo(Date other)
Compares an object with another
Date object. |
int |
Date.compareTo(Date other)
Compares an object with another
Date-object. |
boolean |
DateTime.isSameDateAs(Date otherDate)
Compares an object to another
Date-object. |
static DateTime |
DateTime.of(Date date)
Creating a datetime from a
Date. |
static Date |
Date.of(Date date)
Creating a date from a
Date. |
static DateTime |
DateTime.of(Date date,
Time time)
|
static java.lang.String |
Date.toString(Date date,
java.time.format.DateTimeFormatter formatter)
Converts
date to String, using formatter, following all other rules of formatting. |
static java.lang.String |
Date.toString(Date date,
java.util.Locale locale)
Converts
date to String, using locale, following all other rules of formatting. |
static java.lang.String |
Date.toString(Date date,
java.lang.String formatDescription)
Converts
date to String, using formatDescription, following all other rules of formatting. |