Class CalHelper
java.lang.Object
de.uplanet.lucy.server.auxiliaries.calendar.CalHelper
Deprecated.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.Since 2015-09-17. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Do not use this method.int
Deprecated.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.ChimeraDate
getAscensionDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getAscensionDate(Object, TimeZone)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getAshWednesdayDate
(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.ChimeraDate
getCorpusChristiDate
(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.int
getDiffInDays
(String p_strIso) Deprecated.long
getDiffInMillis
(String p_strIso) Deprecated.long
getDiffInMillis
(String p_strIso1, String p_strIso2) Deprecated.de.uplanet.lucy.server.scripting.ChimeraDate
getEasterDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterDate(Object, TimeZone)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getEasterMondayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getEasterMondayDate(Object, TimeZone)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getGoodFridayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getGoodFridayDate(Object, TimeZone)
instead.long
getLunationNumber
(long p_lTime) Deprecated.UseDateTimeUtil.getLunationNumber(Object)
instead.long
getLunationNumber
(Date p_dt) Deprecated.UseDateTimeUtil.getLunationNumber(Object)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getMaundyThursdayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getMaundyThursdayDate(Object, TimeZone)
instead.long
getMeeusLunationNumber
(long p_lTime) Deprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)
instead.long
getMeeusLunationNumber
(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.ChimeraDate
getPenanceDayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPenanceDayDate(Object, TimeZone)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getPentecostDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getPentecostDate(Object, TimeZone)
instead.double
getPhaseOfTheMoon
(long p_lTime) Deprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)
instead.double
getPhaseOfTheMoon
(Date p_dt) Deprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)
instead.de.uplanet.lucy.server.auxiliaries.calendar.RFC5545Util
Deprecated.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.ChimeraDate
getShroveMondayDate
(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.int
getWeekNumber
(Calendar p_cal) Deprecated.Use$DtUtil.getISO8601WeekNumber
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getWhitMondayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitMondayDate(Object, TimeZone)
instead.de.uplanet.lucy.server.scripting.ChimeraDate
getWhitSundayDate
(Object p_obj, TimeZone p_tz) Deprecated.UseDateTimeUtil.getWhitSundayDate(Object, TimeZone)
instead.void
init
(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) Deprecated.boolean
Deprecated.boolean
Deprecated.
-
Constructor Details
-
CalHelper
public CalHelper()Deprecated.
-
-
Method Details
-
init
public 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.
-
convertDateForInput
Deprecated. -
convertDateTimeForInput
Deprecated. -
convertDateTimeForVCalendar
Deprecated. -
convertValueHolderForVCalendar
@Deprecated public String convertValueHolderForVCalendar(de.uplanet.lucy.server.dataobjects.IValueHolder<?> p_vh) Deprecated. -
convertDateForOutput
Deprecated. -
convertDateTimeForOutput
Deprecated. -
convertDateTimeForOutput
Deprecated. -
convertDateTimeForOutput
Deprecated. -
getSelectedApps
Deprecated.Method getSelectedApps.- Returns:
- List
-
getSelectedApps
Deprecated.Method getSelectedApps by User Guid.- Parameters:
p_strUserGuid
- used for profile settings- Returns:
- List
-
getDeSelectedApps
Deprecated.Method getDeSelectedApps.- Returns:
- List
-
getDeSelectedApps
Deprecated.Method getDeSelectedApps.- Parameters:
p_strUserGuid
- used for profile settings- Returns:
- List
-
getDefaultIso
Deprecated.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"
-
getDefaultIso
Deprecated.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"
-
format
Deprecated.- Parameters:
p_cal
-p_pattern
-- Returns:
- a format date time string using the sessions language locale
-
format
Deprecated.- Parameters:
p_strDateTimeISOinUTC
-p_pattern
-- Returns:
- a format date time string using the sessions language locale
-
getDiffInMillis
Deprecated.- Parameters:
p_strIso
-- Returns:
- The difference between today (now) and the given date in millisecons (negative if the given date is before now).
-
compare
Deprecated.UseString.compareTo(String)
instead. -
compare
Deprecated.Do not use this method. -
getDiffInMillis
Deprecated.- Parameters:
p_strIso1
-p_strIso2
-- Returns:
- the difference between p_strIso2 and the given date p_strIso1 in millisecons (p_strIso2 - p_strIso1)
-
isToday
Deprecated.- Parameters:
p_strIso
-- Returns:
- Boolean
-
isToday
Deprecated.- Parameters:
p_cal
- a calendar- Returns:
- boolean true if the calendar is today
-
getDiffInDays
Deprecated.- Parameters:
p_strIso
-- Returns:
- the difference between today(now) and the given date in days (negative if the given date is before now)
-
getWeekNumber
Deprecated.Use$DtUtil.getISO8601WeekNumber
instead. -
getDateFromString
Deprecated.- Parameters:
p_strDate
- A string representing a date.p_tz
- The time zone to be used.- Returns:
- Date
-
getUpCalendarFromString
Deprecated.- 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
-
getUpCalendarFromDate
Deprecated.- Parameters:
p_dt
- A date object.p_tz
- The time zone to be used.- Returns:
- UpCalendar
-
getNowCalendar
Deprecated.UseDateTimeUtil.now(TimeZone)
instead.- Parameters:
p_tz
-- Returns:
- UpCalendar at now using the given timezone
-
getNowCalendar
Deprecated.UseDateTimeUtil.now(TimeZone)
instead.- Returns:
- UpCalendar at now using the context users timezone
-
getCalendar
Deprecated. -
getCalendarWithAdjustment
Deprecated. -
getLunationNumber
Deprecated.UseDateTimeUtil.getLunationNumber(Object)
instead. -
getLunationNumber
Deprecated.UseDateTimeUtil.getLunationNumber(Object)
instead. -
getMeeusLunationNumber
Deprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)
instead. -
getMeeusLunationNumber
Deprecated.UseDateTimeUtil.getMeeusLunationNumber(Object)
instead. -
getPhaseOfTheMoon
Deprecated.UseDateTimeUtil.getPhaseOfTheMoon(Object)
instead. -
getPhaseOfTheMoon
Deprecated.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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Shrove Monday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Ash Wednesday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Maundy Thursday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Good Friday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Easter date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Easter Monday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Ascension Day date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Whit Sunday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Whit Monday date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Pentecost date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Corpus Christi date as both a
java.sql.Timestamp
and 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, orIValueHolder
.p_tz
- The time zone.- Returns:
- The Penance Day date as both a
java.sql.Timestamp
and as aIDateTimeValueHolder
-
getRFC5545Util
Deprecated.UseObjectFactory.getRFC5545Util()
instead.- Returns:
- A RFC 5545 utility.
- Since:
- Intrexx version 5.2.
-
DateTimeUtil
, orCalendarAwareDate
.