Buglet - buglet.sourceforge.org

org.buglet.date
Class AccessDate

java.lang.Object
  |
  +--java.util.Calendar
        |
        +--java.util.GregorianCalendar
              |
              +--org.buglet.date.AccessDate
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AccessDate
extends java.util.GregorianCalendar

The class access date is used to wrap the gregorian callendar class in a way which allows access to the getTimeInMillis() method, which is a protected in gregorian callendar.

See Also:
Serialized Form

Fields inherited from class java.util.GregorianCalendar
AD, BC, serialVersionUID
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, areAllFieldsSet, areFieldsSet, AUGUST, currentSerialVersion, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, INTERNALLY_SET, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINIMUM_USER_STAMP, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, stamp, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, UNSET, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
 
Constructor Summary
AccessDate()
          Constructor, creates access date containing the current time.
AccessDate(int year, int month, int day, int hour, int min, int sec)
          Constructor, calculates the time from the given year, month, day, hour, minute and second.
 
Method Summary
 long getMilliTime()
          The sole purpose of this class, allows access to the getTimeInMillis function in GregorianCallendar.
 void setMilliTime(long milliTime)
           
 
Methods inherited from class java.util.GregorianCalendar
, add, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getISOYear, getLeastMaximum, getMaximum, getMinimum, hashCode, inDaylightTime, isLeapYear, roll, roll, setGregorianChange
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, clone, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, internalGet, internalSet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, setTimeZone, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessDate

public AccessDate()
Constructor, creates access date containing the current time.

AccessDate

public AccessDate(int year,
                  int month,
                  int day,
                  int hour,
                  int min,
                  int sec)
Constructor, calculates the time from the given year, month, day, hour, minute and second.
Parameters:
year -  
month -  
day -  
hour -  
min -  
sec -  
Method Detail

getMilliTime

public long getMilliTime()
The sole purpose of this class, allows access to the getTimeInMillis function in GregorianCallendar.

setMilliTime

public void setMilliTime(long milliTime)

Buglet - buglet.sourceforge.org

Copyright © 2001 58k.com Inc. All Rights Reserved