Mike
Mike

Reputation: 1097

What is an Instant in JHipster JDL?

Where can I find any information about an instant in JDL? And how does it relate to a Date format...?

Besides this: https://www.jhipster.tech/jdl/

Available field types and constraints Here are the types supported in the JDL:

SQL          MongoDB    Cassandra   Validations
Instant      Instant    Instant     required

LocalDate   LocalDate   required    required
ZonedDateTime   ZonedDateTime       required

Thanks

Upvotes: 2

Views: 4292

Answers (1)

Jon Ruddell
Jon Ruddell

Reputation: 6362

All of the JDL data types are simply Java types. So an "Instant" refers to a Java "Instant" as described in the Java docs

An instantaneous point on the time-line.

This class models a single instantaneous point on the time-line. This might be used to record event time-stamps in the application.

Upvotes: 5

Related Questions