Class ReservationTemplateDateTime
java.lang.Object
ch.tocco.nice2.optional.reservation.api.util.ReservationTemplateDateTime
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 Summary
Modifier and TypeMethodDescriptionstatic @Nullable org.joda.time.DateTimecombineDateAndTime(@Nullable org.joda.time.LocalDate date, @Nullable org.joda.time.LocalTime time, org.joda.time.DateTimeZone timeZone)
-
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:
nullif neither date nor time is set
-