Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

CDC 1.1.2

Uses of Class
java.util.Date

Packages that use Date
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of Date in java.text
 

Methods in java.text that return Date
 Date SimpleDateFormat.get2DigitYearStart()
          Returns the beginning date of the 100-year period 2-digit years are interpreted as being within.
 Date SimpleDateFormat.parse(String text, ParsePosition pos)
          Parses text from a string to produce a Date.
 Date DateFormat.parse(String source)
          Parses text from the beginning of the given string to produce a date.
abstract  Date DateFormat.parse(String source, ParsePosition pos)
          Parse a date/time string according to the given parse position.
 

Methods in java.text with parameters of type Date
 void SimpleDateFormat.set2DigitYearStart(Date startDate)
          Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies.
 StringBuffer SimpleDateFormat.format(Date date, StringBuffer toAppendTo, FieldPosition pos)
          Formats the given Date into a date/time string and appends the result to the given StringBuffer.
abstract  StringBuffer DateFormat.format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
          Formats a Date into a date/time string.
 String DateFormat.format(Date date)
          Formats a Date into a date/time string.
 

Uses of Date in java.util
 

Methods in java.util that return Date
 Date GregorianCalendar.getGregorianChange()
          Gets the Gregorian Calendar change date.
 Date Calendar.getTime()
          Gets this Calendar's current time.
 

Methods in java.util with parameters of type Date
abstract  boolean TimeZone.inDaylightTime(Date date)
          Queries if the given date is in daylight savings time in this time zone.
 boolean SimpleTimeZone.inDaylightTime(Date date)
          Queries if the given date is in daylight saving time.
 void GregorianCalendar.setGregorianChange(Date date)
          Sets the GregorianCalendar change date.
 void Calendar.setTime(Date date)
          Sets this Calendar's current time with the given Date.
 boolean Date.before(Date when)
          Tests if this date is before the specified date.
 boolean Date.after(Date when)
          Tests if this date is after the specified date.
 int Date.compareTo(Date anotherDate)
          Compares two Dates for ordering.
 


CDC 1.1.2

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 218 specification.