Class CalHelper
java.lang.Object
de.uplanet.lucy.server.auxiliaries.calendar.CalHelper
Deprecated.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Since 2015-09-17.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated.Do not use this method.intDeprecated.UseString.compareTo(String)instead.convertDateForInput(String p_strInValue) Deprecated.convertDateForOutput(String p_strValue) Deprecated.convertDateTimeForInput(String p_strInValue) Deprecated.convertDateTimeForOutput(long p_value) Deprecated.convertDateTimeForOutput(String p_strValue) Deprecated.convertDateTimeForOutput(Date p_dt) Deprecated.convertDateTimeForVCalendar(String p_strInValue) Deprecated.convertValueHolderForVCalendar(de.uplanet.lucy.server.dataobjects.IValueHolder<?> p_vh) Deprecated.Deprecated.Deprecated.de.uplanet.lucy.server.scripting.ChimeraDategetAscensionDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getAscensionDate(Object, TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetAshWednesdayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getAshWednesdayDate(Object, TimeZone)instead.getCalendar(String p_strAdjust) Deprecated.getCalendarWithAdjustment(String p_strAdjust) Deprecated.de.uplanet.lucy.server.scripting.ChimeraDategetCorpusChristiDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getCorpusChristiDate(Object, TimeZone)instead.getDateFromString(String p_strDate, TimeZone p_tz) Deprecated.getDefaultIso(String p_strAdjust) Deprecated.getDefaultIso(String p_strAdjust, String p_strTimeZone) Deprecated.List<de.uplanet.lucy.server.rtcache.ApplicationInfo>Deprecated.Method getDeSelectedApps.List<de.uplanet.lucy.server.rtcache.ApplicationInfo>getDeSelectedApps(String p_strUserGuid) Deprecated.Method getDeSelectedApps.intgetDiffInDays(String p_strIso) Deprecated.longgetDiffInMillis(String p_strIso) Deprecated.longgetDiffInMillis(String p_strIso1, String p_strIso2) Deprecated.de.uplanet.lucy.server.scripting.ChimeraDategetEasterDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterDate(Object, TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetEasterMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterMondayDate(Object, TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetGoodFridayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getGoodFridayDate(Object, TimeZone)instead.longgetLunationNumber(long p_lTime) Deprecated.UseDateTimeUtil.getLunationNumber(Object)instead.longgetLunationNumber(Date p_dt) Deprecated.UseDateTimeUtil.getLunationNumber(Object)instead.de.uplanet.lucy.server.scripting.ChimeraDategetMaundyThursdayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getMaundyThursdayDate(Object, TimeZone)instead.longgetMeeusLunationNumber(long p_lTime) Deprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)instead.longgetMeeusLunationNumber(Date p_dt) Deprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)instead.Deprecated.UseDateTimeUtil.now(TimeZone)instead.getNowCalendar(TimeZone p_tz) Deprecated.UseDateTimeUtil.now(TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetPenanceDayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPenanceDayDate(Object, TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetPentecostDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPentecostDate(Object, TimeZone)instead.doublegetPhaseOfTheMoon(long p_lTime) Deprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)instead.doublegetPhaseOfTheMoon(Date p_dt) Deprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)instead.de.uplanet.lucy.server.auxiliaries.calendar.RFC5545UtilDeprecated.UseObjectFactory.getRFC5545Util()instead.List<de.uplanet.lucy.server.rtcache.ApplicationInfo>Deprecated.Method getSelectedApps.List<de.uplanet.lucy.server.rtcache.ApplicationInfo>getSelectedApps(String p_strUserGuid) Deprecated.Method getSelectedApps by User Guid.de.uplanet.lucy.server.scripting.ChimeraDategetShroveMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getShroveMondayDate(Object, TimeZone)instead.getUpCalendarFromDate(Date p_dt, TimeZone p_tz) Deprecated.getUpCalendarFromString(String p_strDate, TimeZone p_tz) Deprecated.getUpCalendarFromVH(de.uplanet.lucy.server.dataobjects.IValueHolder<?> p_vh, TimeZone p_tz) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateString(String p_strInValue) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateString(String p_strInValue, String p_strTimeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateString(String p_strInValue, TimeZone p_timeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateTimeString(String p_strInValue) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateTimeString(String p_strInValue, String p_strTimeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateTimeString(String p_strInValue, TimeZone p_timeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromDateTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromTimeString(String p_strInValue) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromTimeString(String p_strInValue, String p_strTimeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromTimeString(String p_strInValue, TimeZone p_timeZone) Deprecated.de.uplanet.lucy.server.dataobjects.IValueHolder<?>getVHFromTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.intgetWeekNumber(Calendar p_cal) Deprecated.Use$DtUtil.getISO8601WeekNumberinstead.de.uplanet.lucy.server.scripting.ChimeraDategetWhitMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitMondayDate(Object, TimeZone)instead.de.uplanet.lucy.server.scripting.ChimeraDategetWhitSundayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitSundayDate(Object, TimeZone)instead.voidinit(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) Deprecated.booleanDeprecated.booleanDeprecated.
- 
Constructor Details- 
CalHelperpublic CalHelper()Deprecated.
 
- 
- 
Method Details- 
initpublic void init(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) Deprecated.- Parameters:
- p_request- The current request.
 
- 
getVHFromDateTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateTimeString(String p_strInValue) Deprecated.Converts the given UTC date-time string to a value holder.- Parameters:
- p_strInValue- The UTC date time string.
 
- 
getVHFromDateTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateTimeString(String p_strInValue, String p_strTimeZone) Deprecated.Converts the given date-time string to a value holder.- Parameters:
- p_strInValue- The date time string.
- p_strTimeZone- The time zone to be used.
 
- 
getVHFromDateTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateTimeString(String p_strInValue, TimeZone p_timeZone) Deprecated.Converts the given date-time string to a value holder.- Parameters:
- p_strInValue- The date time string.
- p_timeZone- The time zone to be used.
 
- 
getVHFromDateTimeStringWithAdjust@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.Converts the given date-time string to a value holder.- Parameters:
- p_strInValue- The date time string.
- p_strAdjust- The adjust string.
- p_timeZone- The time zone.
 
- 
getVHFromDateString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateString(String p_strInValue) Deprecated.Converts the given UTC date string to a value holder.- Parameters:
- p_strInValue- The UTC date string.
 
- 
getVHFromDateString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateString(String p_strInValue, String p_strTimeZone) Deprecated.Converts the given date string to a value holder.- Parameters:
- p_strInValue- The date string.
- p_strTimeZone- The time zone to be used.
 
- 
getVHFromDateString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateString(String p_strInValue, TimeZone p_timeZone) Deprecated.Converts the given date string to a value holder.- Parameters:
- p_strInValue- The date time string.
- p_timeZone- The time zone to be used.
 
- 
getVHFromDateStringWithAdjust@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromDateStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.Converts the given string to a date value holder.- Parameters:
- p_strInValue- The DateTime string.
- p_strAdjust- The adjust string.
- p_timeZone- The time zone.
 
- 
getVHFromTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromTimeString(String p_strInValue) Deprecated.Converts the given time string to a value holder.The date part of the value holder created contains the current date in the UTC time zone. - Parameters:
- p_strInValue- The time string.
 
- 
getVHFromTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromTimeString(String p_strInValue, String p_strTimeZone) Deprecated.Converts the given time string to a value holder.The date part of the value holder created contains the current date in the given time zone. - Parameters:
- p_strInValue- The time string.
- p_strTimeZone- The time zone to be used.
 
- 
getVHFromTimeString@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromTimeString(String p_strInValue, TimeZone p_timeZone) Deprecated.Converts the given time string to a value holder.The date part of the value holder created contains the current date in the given time zone. - Parameters:
- p_strInValue- The time string.
- p_timeZone- The time zone to be used.
 
- 
getVHFromTimeStringWithAdjust@Deprecated public de.uplanet.lucy.server.dataobjects.IValueHolder<?> getVHFromTimeStringWithAdjust(String p_strInValue, String p_strAdjust, TimeZone p_timeZone) Deprecated.Converts the given time string to a value holder.The date part of the value holder created contains the current date in the given time zone. - Parameters:
- p_strInValue- The time string.
- p_strAdjust- The adjust string.
- p_timeZone- The time zone to be used.
 
- 
convertDateForInputDeprecated.
- 
convertDateTimeForInputDeprecated.
- 
convertDateTimeForVCalendarDeprecated.
- 
convertValueHolderForVCalendar@Deprecated public String convertValueHolderForVCalendar(de.uplanet.lucy.server.dataobjects.IValueHolder<?> p_vh) Deprecated.
- 
convertDateForOutputDeprecated.
- 
convertDateTimeForOutputDeprecated.
- 
convertDateTimeForOutputDeprecated.
- 
convertDateTimeForOutputDeprecated.
- 
getSelectedAppsDeprecated.Method getSelectedApps.- Returns:
- List
 
- 
getSelectedAppsDeprecated.Method getSelectedApps by User Guid.- Parameters:
- p_strUserGuid- used for profile settings
- Returns:
- List
 
- 
getDeSelectedAppsDeprecated.Method getDeSelectedApps.- Returns:
- List
 
- 
getDeSelectedAppsDeprecated.Method getDeSelectedApps.- Parameters:
- p_strUserGuid- used for profile settings
- Returns:
- List
 
- 
getDefaultIsoDeprecated.Returns the adjusted ISO time string realted to the users timezone- Parameters:
- p_strAdjust- eg. ",+1,1,0,0,0"
- Returns:
- String e.g. "2003-09-01 00:00:00"
 
- 
getDefaultIsoDeprecated.Returns the adjusted ISO time string.- Parameters:
- p_strAdjust- eg. ",+1,1,0,0,0"
- p_strTimeZone- as Stirng
- Returns:
- String e.g. "2003-09-01 00:00:00"
 
- 
formatDeprecated.- Parameters:
- p_cal-
- p_pattern-
- Returns:
- a format date time string using the sessions language locale
 
- 
formatDeprecated.- Parameters:
- p_strDateTimeISOinUTC-
- p_pattern-
- Returns:
- a format date time string using the sessions language locale
 
- 
getDiffInMillisDeprecated.- Parameters:
- p_strIso-
- Returns:
- The difference between today (now) and the given date in millisecons (negative if the given date is before now).
 
- 
compareDeprecated.UseString.compareTo(String)instead.
- 
compareDeprecated.Do not use this method.
- 
getDiffInMillisDeprecated.- Parameters:
- p_strIso1-
- p_strIso2-
- Returns:
- the difference between p_strIso2 and the given date p_strIso1 in millisecons (p_strIso2 - p_strIso1)
 
- 
isTodayDeprecated.- Parameters:
- p_strIso-
- Returns:
- Boolean
 
- 
isTodayDeprecated.- Parameters:
- p_cal- a calendar
- Returns:
- boolean true if the calendar is today
 
- 
getDiffInDaysDeprecated.- Parameters:
- p_strIso-
- Returns:
- the difference between today(now) and the given date in days (negative if the given date is before now)
 
- 
getWeekNumberDeprecated.Use$DtUtil.getISO8601WeekNumberinstead.
- 
getDateFromStringDeprecated.- Parameters:
- p_strDate- A string representing a date.
- p_tz- The time zone to be used.
- Returns:
- Date
 
- 
getUpCalendarFromStringDeprecated.- Parameters:
- p_strDate- A string representing a date.
- p_tz- The time zone to be used.
- Returns:
- UpCalendar
 
- 
getUpCalendarFromVH@Deprecated public Calendar getUpCalendarFromVH(de.uplanet.lucy.server.dataobjects.IValueHolder<?> p_vh, TimeZone p_tz) Deprecated.- Parameters:
- p_vh- A date ValueHolder.
- p_tz- The time zone to be used.
- Returns:
- UpCalendar
 
- 
getUpCalendarFromDateDeprecated.- Parameters:
- p_dt- A date object.
- p_tz- The time zone to be used.
- Returns:
- UpCalendar
 
- 
getNowCalendarDeprecated.UseDateTimeUtil.now(TimeZone)instead.- Parameters:
- p_tz-
- Returns:
- UpCalendar at now using the given timezone
 
- 
getNowCalendarDeprecated.UseDateTimeUtil.now(TimeZone)instead.- Returns:
- UpCalendar at now using the context users timezone
 
- 
getCalendarDeprecated.
- 
getCalendarWithAdjustmentDeprecated.
- 
getLunationNumberDeprecated.UseDateTimeUtil.getLunationNumber(Object)instead.
- 
getLunationNumberDeprecated.UseDateTimeUtil.getLunationNumber(Object)instead.
- 
getMeeusLunationNumberDeprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)instead.
- 
getMeeusLunationNumberDeprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)instead.
- 
getPhaseOfTheMoonDeprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)instead.
- 
getPhaseOfTheMoonDeprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)instead.
- 
getShroveMondayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getShroveMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getShroveMondayDate(Object, TimeZone)instead.Get the Shrove Monday (Rosenmontag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Shrove Monday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getAshWednesdayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getAshWednesdayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getAshWednesdayDate(Object, TimeZone)instead.Get the Ash Wednesday (Aschermittwoch) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Ash Wednesday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getMaundyThursdayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getMaundyThursdayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getMaundyThursdayDate(Object, TimeZone)instead.Get the Maundy Thursday (Gründonnerstag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Maundy Thursday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getGoodFridayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getGoodFridayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getGoodFridayDate(Object, TimeZone)instead.Get the Good Friday (Karfreitag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Good Friday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getEasterDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getEasterDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterDate(Object, TimeZone)instead.Get the Easter (Ostersonntag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Easter date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getEasterMondayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getEasterMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterMondayDate(Object, TimeZone)instead.Get the Easter Monday (Ostermontag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Easter Monday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getAscensionDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getAscensionDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getAscensionDate(Object, TimeZone)instead.Get the Ascension Day (Christi Himmelfahrt) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Ascension Day date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getWhitSundayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getWhitSundayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitSundayDate(Object, TimeZone)instead.Get the Whit Sunday (Pfingstsonntag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Whit Sunday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getWhitMondayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getWhitMondayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitMondayDate(Object, TimeZone)instead.Get the Whit Monday (Pfingstmontag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Whit Monday date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getPentecostDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getPentecostDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPentecostDate(Object, TimeZone)instead.Get the Pentecost date (Pfingstsonntag) in the given year. Same asgetWhitSundayDate.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Pentecost date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getCorpusChristiDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getCorpusChristiDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getCorpusChristiDate(Object, TimeZone)instead.Get the Corpus Christi (Fronleichnam) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Corpus Christi date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getPenanceDayDate@Deprecated public de.uplanet.lucy.server.scripting.ChimeraDate getPenanceDayDate(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPenanceDayDate(Object, TimeZone)instead.Get the Penance Day (Buß- und Bettag) date in the given year.- Parameters:
- p_obj- The year, either as an integer, or date, or- IValueHolder.
- p_tz- The time zone.
- Returns:
- The Penance Day date as both a java.sql.Timestampand as aIDateTimeValueHolder
 
- 
getRFC5545UtilDeprecated.UseObjectFactory.getRFC5545Util()instead.- Returns:
- A RFC 5545 utility.
- Since:
- Intrexx version 5.2.
 
 
- 
DateTimeUtil, orCalendarAwareDate.