Class ReservationTemplateDateTime

java.lang.Object
ch.tocco.nice2.optional.reservation.api.util.ReservationTemplateDateTime

public final class ReservationTemplateDateTime extends Object
A Reservation_template stores date and time separately and often only defines the time (e.g. "morning" from 09:00 to 12:00). A missing date is replaced by today and a missing time by now, so that selecting such a template still prefills the date time fields of the action.
  • Method Details

    • combineDateAndTime

      public static @Nullable org.joda.time.DateTime combineDateAndTime(@Nullable org.joda.time.LocalDate date, @Nullable org.joda.time.LocalTime time, org.joda.time.DateTimeZone timeZone)
      Returns:
      null if neither date nor time is set