de.uplanet.lucy.server.util
Class UpCalendar

java.lang.Object
  extended by java.util.Calendar
      extended by java.util.GregorianCalendar
          extended by de.uplanet.lucy.server.util.UpCalendar
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Calendar>

public class UpCalendar
extends java.util.GregorianCalendar

This class extends the GregorianCalendar and has special methods for getting strings.

Version:
$Revision: 64100 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.GregorianCalendar
AD, BC
 
Fields inherited from class java.util.Calendar
ALL_STYLES, AM, AM_PM, APRIL, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, FRIDAY, HOUR, HOUR_OF_DAY, JANUARY, JULY, JUNE, LONG, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SUNDAY, THURSDAY, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
 
Constructor Summary
UpCalendar(java.util.TimeZone p_tz)
           
UpCalendar(java.util.TimeZone p_tz, java.util.Locale p_locale)
           
UpCalendar(UpCalendar p_calendar)
          Create a deep copy of the given UpCalendar
 
Method Summary
 java.lang.String getStr()
          Returns a string representation of the date in the yyyy-MM-dd HH:mm_ss format, using the timezone
 java.lang.String getStrGMT()
          Deprecated.  
 java.lang.String getStrUTC()
          Returns a string representation of the date in the yyyy-MM-dd HH:mm_ss format, calculated for the TimeZone UTC.
 boolean isEqualDay(UpCalendar p_calendar)
           
 boolean isFriday()
           
 boolean isMonday()
           
 boolean isSaturday()
           
 boolean isSunday()
           
 boolean isThursday()
           
 boolean isTuesday()
           
 boolean isWednesday()
           
 void setTimeInGMT(java.lang.String p_strISOTimeInUTC)
          Deprecated.  
 void setTimeInLocale(java.lang.String p_strISOTime)
           
 void setTimeInUTC(java.lang.String p_strISOTimeInUTC)
           
 void setToBeginOfDay()
          Method setToBeginOfDay.
 void setToEndOfDay()
           
 
Methods inherited from class java.util.GregorianCalendar
add, clone, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, hashCode, isLeapYear, roll, roll, setGregorianChange, setTimeZone
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, compareTo, get, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpCalendar

public UpCalendar(UpCalendar p_calendar)
Create a deep copy of the given UpCalendar

Parameters:
p_calendar - The template calendar.

UpCalendar

public UpCalendar(java.util.TimeZone p_tz)
Parameters:
p_tz - The time zone to be used.

UpCalendar

public UpCalendar(java.util.TimeZone p_tz,
                  java.util.Locale p_locale)
Parameters:
p_tz - The time zone to be used.
p_locale - The locale to be used.
Method Detail

getStr

public java.lang.String getStr()
Returns a string representation of the date in the yyyy-MM-dd HH:mm_ss format, using the timezone


getStrUTC

public java.lang.String getStrUTC()
Returns a string representation of the date in the yyyy-MM-dd HH:mm_ss format, calculated for the TimeZone UTC.


getStrGMT

@Deprecated
public java.lang.String getStrGMT()
Deprecated. 

Returns:
UTC !!!! Date/Time String

isEqualDay

public boolean isEqualDay(UpCalendar p_calendar)

setToBeginOfDay

public void setToBeginOfDay()
Method setToBeginOfDay.


setToEndOfDay

public void setToEndOfDay()

setTimeInUTC

public void setTimeInUTC(java.lang.String p_strISOTimeInUTC)
                  throws java.text.ParseException
Throws:
java.text.ParseException

setTimeInGMT

@Deprecated
public void setTimeInGMT(java.lang.String p_strISOTimeInUTC)
                  throws java.text.ParseException
Deprecated. 

Parameters:
p_strISOTimeInUTC - UTC !!!! Date/Time String
Throws:
java.text.ParseException

setTimeInLocale

public void setTimeInLocale(java.lang.String p_strISOTime)
                     throws java.text.ParseException
Throws:
java.text.ParseException

isMonday

public boolean isMonday()

isTuesday

public boolean isTuesday()

isWednesday

public boolean isWednesday()

isThursday

public boolean isThursday()

isFriday

public boolean isFriday()

isSaturday

public boolean isSaturday()

isSunday

public boolean isSunday()


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.