Class DefaultExcelDateUtils

    • Constructor Detail

      • DefaultExcelDateUtils

        public DefaultExcelDateUtils()
    • Method Detail

      • extractDateRange

        public org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.lang.String> extractDateRange​(java.lang.String cellValue)
        Description copied from interface: ExcelDateUtils
        Extracts from given value start and end date. Expected format is "start to end"
        Specified by:
        extractDateRange in interface ExcelDateUtils
        Parameters:
        cellValue - value from which date range will be extracted.
        Returns:
        pair of start and end date.
      • getDateRangePattern

        public java.lang.String getDateRangePattern()
        Description copied from interface: ExcelDateUtils
        Returns date range patter used in excel column header e.g. [dd.MM.yyyy HH:mm:ss to dd.MM.yyyy HH:mm:ss]
        Specified by:
        getDateRangePattern in interface ExcelDateUtils
        Returns:
        string with date range pattern.
      • getDateTimeFormat

        public java.lang.String getDateTimeFormat()
        Description copied from interface: ExcelDateUtils
        Return date and time format e.g. dd.MM.yyyy HH:mm:ss.
        Specified by:
        getDateTimeFormat in interface ExcelDateUtils
        Returns:
        dateTime format.
      • importDate

        public java.lang.String importDate​(java.lang.String date)
        Description copied from interface: ExcelDateUtils
        Converts date in excel date timezone into system date zone date string.
        Specified by:
        importDate in interface ExcelDateUtils
        Parameters:
        date - date in excel date timezone ExcelDateUtils.getExportTimeZone()
        Returns:
        date string in system timezone.
      • getExportTimeZone

        public java.lang.String getExportTimeZone()
        Description copied from interface: ExcelDateUtils
        Timezone in which dates are exported into excel e.g. UTC
        Specified by:
        getExportTimeZone in interface ExcelDateUtils
        Returns:
        excel timezone
      • setExportTimeZone

        public void setExportTimeZone​(java.lang.String exportTimeZone)
      • setDateTimeFormat

        public void setDateTimeFormat​(java.lang.String dateTimeFormat)
      • setI18NService

        public void setI18NService​(I18NService i18NService)