DE EN EN (Google)

Date

This type is a timestamp that can be provided in different precision levels (year, month, day, hour, minute, second).

The date is represented as an object with an attribute value, which can be set by the user and remains unaltered. It is a string with a timestamp in ISO 8601 format (like Timestamp. Easydb generates an internal range that is used to index the date in Elasticsearch (fields _from and _to).

Date Range

This time is composed of two dates that define an inclusive time interval. The dates are provided as ISO 8601 timestamps in the fields from and to. Again, the fields _from and _to will be auto-generated. It is possible to define open ranges to either side, but not to both sides.

{
    "born": {
        "value": "1980-10-07"
    },
    "last_access": {
        "value": "2011-03-27T13:44:12"
    },
    "password_validity": {
        "from": "2010-01-01T:15:00",
        "to": "2015-01-01T10:00"
    },
    "grant_access1": {                      // open range
        "from": "2010"
    },
    "grant_access2": {                      // the same as above
        "from": "2010",
        "to": null
    },
    "always": {                             // this is not valid
        "from": null,
        "to": null
    }
}