Module jakarta.data

Interface CurrentDateTime<T>

Type Parameters:
T - entity type.
All Superinterfaces:
ComparableExpression<T,LocalDateTime>, Expression<T,LocalDateTime>, TemporalExpression<T,LocalDateTime>

public interface CurrentDateTime<T> extends TemporalExpression<T,LocalDateTime>

An expression that represents the current date and time.

Since:
1.1
  • Method Details

    • now

      @Nonnull static <T> CurrentDateTime<T> now()

      Obtains an expression that represents the current date and time.

      Returns:
      an expression representing the current date and time.