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 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 given Date objects
      Specified by:
      getNumberOfMonths in interface S2SDateTimeService
      Parameters:
      dateStart - starting date.
      dateEnd - end date.
      Returns:
      number of months between the start date and end date.
    • removeTimezoneFactor

      public String removeTimezoneFactor(String applicationXmlText)
      Specified by:
      removeTimezoneFactor in interface S2SDateTimeService
    • removeTimezoneFactor

      public String removeTimezoneFactor(String applicationXmlText, Calendar cal)
    • convertDateStringToCalendar

      public Calendar convertDateStringToCalendar(String dateStr)
      This method returns a Calendar whose date matches the date passed as String
      Specified by:
      convertDateStringToCalendar in interface S2SDateTimeService
      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

      public Calendar convertDateToCalendar(Date date)
      This method is used to get Calendar date for the corresponding date object.
      Specified by:
      convertDateToCalendar in interface S2SDateTimeService
      Parameters:
      date - (Date) date for which Calendar value has to be found.
      Returns:
      calendar value corresponding to the date.