Annotation Interface DateTimeRange


@Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Documented @API(status=EXPERIMENTAL, since="1.5.1") public @interface DateTimeRange
Constrain the range of generated date time parameters. Only strings of format DateTimeFormatter.ISO_LOCAL_DATE_TIME are supported.

Applies to LocalDateTime, OffsetDateTime and ZonedDateTime parameters which are also annotated with @ForAll.

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • min

      String min
      Default:
      "1900-01-01T00:00:00"
    • max

      String max
      Default:
      "2500-12-31T23:59:59.0"