List of usage examples for org.joda.time LocalDate fromDateFields
@SuppressWarnings("deprecation") public static LocalDate fromDateFields(Date date)
java.util.Date
using exactly the same field values. From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public Date getBeginPeriodDate() { return beginPeriodDateTime != null ? LocalDate.fromDateFields(beginPeriodDateTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setBeginPeriodDate(Date beginPeriodDate) { LocalDate localDate = beginPeriodDate != null ? LocalDate.fromDateFields(beginPeriodDate) : null; LocalTime localTime = beginPeriodDateTime != null ? LocalTime.fromDateFields(beginPeriodDateTime) : LocalTime.MIDNIGHT; beginPeriodDateTime = localDate != null ? localDate.toDateTime(localTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setBeginPeriodTime(Time beginPeriodTime) { LocalDate localDate = beginPeriodDateTime != null ? LocalDate.fromDateFields(beginPeriodDateTime) : LocalDate.now();/*from www . j av a 2 s . c om*/ LocalTime localTime = beginPeriodTime != null ? LocalTime.fromDateFields(beginPeriodTime) : null; beginPeriodDateTime = localTime != null ? localTime.toDateTime(localDate.toDateTimeAtStartOfDay()).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public Date getEndPeriodDate() { return endPeriodDateTime != null ? LocalDate.fromDateFields(endPeriodDateTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setEndPeriodDate(Date endPeriodDate) { LocalDate localDate = endPeriodDate != null ? LocalDate.fromDateFields(endPeriodDate) : null; LocalTime localTime = endPeriodDateTime != null ? LocalTime.fromDateFields(endPeriodDateTime) : LocalTime.MIDNIGHT; endPeriodDateTime = localDate != null ? localDate.toDateTime(localTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setEndPeriodTime(Time endPeriodTime) { LocalDate localDate = endPeriodDateTime != null ? LocalDate.fromDateFields(endPeriodDateTime) : LocalDate.now();//from w ww.j a v a 2 s .c o m LocalTime localTime = endPeriodTime != null ? LocalTime.fromDateFields(endPeriodTime) : null; endPeriodDateTime = localTime != null ? localTime.toDateTime(localDate.toDateTimeAtStartOfDay()).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public Date getBatchInitiateDate() { return batchInitiateDateTime != null ? LocalDate.fromDateFields(batchInitiateDateTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setBatchInitiateDate(Date batchInitiateDate) { LocalDate localDate = batchInitiateDate != null ? LocalDate.fromDateFields(batchInitiateDate) : null; LocalTime localTime = batchInitiateDateTime != null ? LocalTime.fromDateFields(batchInitiateDateTime) : LocalTime.MIDNIGHT; batchInitiateDateTime = localDate != null ? localDate.toDateTime(localTime).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public void setBatchInitiateTime(Time batchInitiateTime) { LocalDate localDate = batchInitiateDateTime != null ? LocalDate.fromDateFields(batchInitiateDateTime) : LocalDate.now();/*from w w w. j a v a2s . c o m*/ LocalTime localTime = batchInitiateTime != null ? LocalTime.fromDateFields(batchInitiateTime) : null; batchInitiateDateTime = localTime != null ? localTime.toDateTime(localDate.toDateTimeAtStartOfDay()).toDate() : null; }
From source file:org.kuali.kpme.core.calendar.entry.CalendarEntry.java
License:Educational Community License
public Date getBatchEndPayPeriodDate() { return batchEndPayPeriodDateTime != null ? LocalDate.fromDateFields(batchEndPayPeriodDateTime).toDate() : null; }