Class S2SDateTimeServiceImpl
java.lang.Object
org.kuali.coeus.s2sgen.impl.datetime.S2SDateTimeServiceImpl
- All Implemented Interfaces:
S2SDateTimeService
@Component("s2SDateTimeService")
public class S2SDateTimeServiceImpl
extends Object
implements S2SDateTimeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertDateStringToCalendar(String dateStr) convertDateToCalendar(Date date) This method is used to get Calendar date for the corresponding date object.org.kuali.coeus.sys.api.model.ScaleTwoDecimalgetNumberOfMonths(Date dateStart, Date dateEnd) This method computes the number of months between any 2 givenDateobjectsremoveTimezoneFactor(String applicationXmlText) removeTimezoneFactor(String applicationXmlText, Calendar cal)
-
Constructor Details
-
S2SDateTimeServiceImpl
public S2SDateTimeServiceImpl()
-
-
Method Details
-
getNumberOfMonths
public org.kuali.coeus.sys.api.model.ScaleTwoDecimal getNumberOfMonths(Date dateStart, Date dateEnd) This method computes the number of months between any 2 givenDateobjects- Specified by:
getNumberOfMonthsin interfaceS2SDateTimeService- Parameters:
dateStart- starting date.dateEnd- end date.- Returns:
- number of months between the start date and end date.
-
removeTimezoneFactor
- Specified by:
removeTimezoneFactorin interfaceS2SDateTimeService
-
removeTimezoneFactor
-
convertDateStringToCalendar
- Specified by:
convertDateStringToCalendarin interfaceS2SDateTimeService- Parameters:
dateStr- string in "MM/dd/yyyy" format for which the Calendar value has to be returned.- Returns:
- Calendar calendar value corresponding to the date string.
-
convertDateToCalendar
This method is used to get Calendar date for the corresponding date object.- Specified by:
convertDateToCalendarin interfaceS2SDateTimeService- Parameters:
date- (Date) date for which Calendar value has to be found.- Returns:
- calendar value corresponding to the date.
-