Uses of Class
java.util.Date
Packages that useDate
Package
Description
Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Interfaces and classes providing a framework for locking and waiting for conditions that is distinct from built-in synchronization and monitors.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Timer MBean.
Provides classes and interfaces that describe the types of Java Print Service attributes and how they can be collected into attribute sets.
Package
javax.print.attribute.standard contains classes for specific printing attributes.This package contains utility classes related to the Kerberos network authentication protocol.
Provides classes for public key certificates.
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Defines XML/Java Type Mappings.
Uses ofDate injava.security
Methods injava.security that returnDateModifier and TypeMethodDescriptionabstractDateKeyStoreSpi.engineGetCreationDate(String alias) Returns the creation date of the entry identified by the given alias.finalDateKeyStore.getCreationDate(String alias) Returns the creation date of the entry identified by the given alias.Timestamp.getTimestamp()Returns the date and time when the timestamp was generated.Constructors injava.security with parameters of typeDateUses ofDate injava.security.cert
Methods injava.security.cert that returnDateModifier and TypeMethodDescriptionX509CertSelector.getCertificateValid()Returns the certificateValid criterion.PKIXParameters.getDate()Returns the time for which the validity of the certification path should be determined.X509CRLSelector.getDateAndTime()Returns the dateAndTime criterion.CertificateRevokedException.getInvalidityDate()Returns the invalidity date, as specified in the Invalidity Date extension of thisCertificateRevokedException.abstractDateX509CRL.getNextUpdate()Gets thenextUpdatedate from the CRL.abstractDateX509Certificate.getNotAfter()Gets thenotAfterdate from the validity period of the certificate.abstractDateX509Certificate.getNotBefore()Gets thenotBeforedate from the validity period of the certificate.X509CertSelector.getPrivateKeyValid()Returns the privateKeyValid criterion.CertificateRevokedException.getRevocationDate()Returns the date on which the certificate was revoked.abstractDateX509CRLEntry.getRevocationDate()Gets the revocation date from this X509CRLEntry, therevocationDate.abstractDateX509CRL.getThisUpdate()Gets thethisUpdatedate from the CRL.Methods injava.security.cert with parameters of typeDateModifier and TypeMethodDescriptionabstract voidX509Certificate.checkValidity(Date date) Checks that the given date is within the certificate's validity period.voidX509CertSelector.setCertificateValid(Date certValid) Sets the certificateValid criterion.voidSets the time for which the validity of the certification path should be determined.voidX509CRLSelector.setDateAndTime(Date dateAndTime) Sets the dateAndTime criterion.voidX509CertSelector.setPrivateKeyValid(Date privateKeyValid) Sets the privateKeyValid criterion.Constructors injava.security.cert with parameters of typeDateModifierConstructorDescriptionCertificateRevokedException(Date revocationDate,CRLReason reason,X500Principal authority,Map<String, Extension> extensions) Constructs aCertificateRevokedExceptionwith the specified revocation date, reason code, authority name, and map of extensions.Uses ofDate injava.sql
Modifier and TypeClassDescriptionclassA thin wrapper around a millisecond value that allows JDBC to identify this as an SQLDATEvalue.classA thin wrapper around thejava.util.Dateclass that allows the JDBC API to identify this as an SQLTIMEvalue.classA thin wrapper aroundjava.util.Datethat allows the JDBC API to identify this as an SQLTIMESTAMPvalue.Uses ofDate injava.text
Modifier and TypeMethodDescriptionSimpleDateFormat.get2DigitYearStart()Returns the beginning date of the 100-year period 2-digit years are interpreted as being within.Parses text from the beginning of the given string to produce a date.abstractDateDateFormat.parse(String source,ParsePosition pos) Parse a date/time string according to the given parse position.SimpleDateFormat.parse(String text,ParsePosition pos) Parses text from a string to produce aDate.Modifier and TypeMethodDescriptionfinalStringFormats aDateinto a date-time string.abstractStringBufferDateFormat.format(Date date,StringBuffer toAppendTo,FieldPosition fieldPosition) Formats aDateinto a date-time string.SimpleDateFormat.format(Date date,StringBuffer toAppendTo,FieldPosition pos) Formats the givenDateinto a date/time string and appends the result to the givenStringBuffer.voidSimpleDateFormat.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.Uses ofDate injava.util
Modifier and TypeMethodDescriptionstaticDateObtains an instance ofDatefrom anInstantobject.finalDateGregorianCalendar.getGregorianChange()Gets the Gregorian Calendar change date.finalDateCalendar.getTime()Modifier and TypeMethodDescriptionbooleanTests if this date is after the specified date.booleanTests if this date is before the specified date.intCompares two Dates for ordering.booleanSimpleTimeZone.inDaylightTime(Date date) Queries if the given date is in daylight saving time.abstract booleanTimeZone.inDaylightTime(Date date) Queries if the givendateis in Daylight Saving Time in this time zone.voidSchedules the specified task for execution at the specified time.voidSchedules the specified task for repeatedfixed-delay execution, beginning at the specified time.voidTimer.scheduleAtFixedRate(TimerTask task,Date firstTime, long period) Schedules the specified task for repeatedfixed-rate execution, beginning at the specified time.voidGregorianCalendar.setGregorianChange(Date date) Sets theGregorianCalendarchange date.Calendar.Builder.setInstant(Date instant) Sets the instant parameter to theinstantvalue given by aDate.final voidSets this Calendar's time with the givenDate.Uses ofDate injava.util.concurrent.locks
Methods injava.util.concurrent.locks with parameters of typeDateModifier and TypeMethodDescriptionfinal booleanAbstractQueuedLongSynchronizer.ConditionObject.awaitUntil(Date deadline) Implements absolute timed condition wait.final booleanAbstractQueuedSynchronizer.ConditionObject.awaitUntil(Date deadline) Implements absolute timed condition wait.booleanCondition.awaitUntil(Date deadline) Causes the current thread to wait until it is signalled or interrupted, or the specified deadline elapses.Uses ofDate injavax.management.openmbean
Fields injavax.management.openmbean with type parameters of typeDateModifier and TypeFieldDescriptionstatic finalSimpleType<Date>SimpleType.DATETheSimpleTypeinstance describing values whose Java class name isjava.util.Date.Uses ofDate injavax.management.timer
Methods injavax.management.timer that returnDateModifier and TypeMethodDescriptionGets a copy of the date associated to a timer notification.Gets a copy of the date associated to a timer notification.Methods injavax.management.timer with parameters of typeDateModifier and TypeMethodDescriptionTimer.addNotification(String type,String message,Object userData,Date date) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.Timer.addNotification(String type,String message,Object userData,Date date, long period) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.Timer.addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.Timer.addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences, boolean fixedRate) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.TimerMBean.addNotification(String type,String message,Object userData,Date date) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and a null period and number of occurrences.TimerMBean.addNotification(String type,String message,Object userData,Date date, long period) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date and period and a null number of occurrences.TimerMBean.addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.TimerMBean.addNotification(String type,String message,Object userData,Date date, long period, long nbOccurences, boolean fixedRate) Creates a new timer notification with the specifiedtype,messageanduserDataand inserts it into the list of notifications with a given date, period and number of occurrences.Uses ofDate injavax.print.attribute
Methods injavax.print.attribute that returnDateModifier and TypeMethodDescriptionDateTimeSyntax.getValue()Returns this date-time attribute'sjava.util.Datevalue.Constructors injavax.print.attribute with parameters of typeDateModifierConstructorDescriptionprotectedDateTimeSyntax(Date value) Construct a new date-time attribute with the givenjava.util.Datevalue.Uses ofDate injavax.print.attribute.standard
Constructors injavax.print.attribute.standard with parameters of typeDateModifierConstructorDescriptionDateTimeAtCompleted(Date dateTime) Construct a new date-time at completed attribute with the givenDatevalue.DateTimeAtCreation(Date dateTime) Construct a new date-time at creation attribute with the givenDatevalue.DateTimeAtProcessing(Date dateTime) Construct a new date-time at processing attribute with the givenDatevalue.JobHoldUntil(Date dateTime) Construct a new job hold until date-time attribute with the givenDatevalue.Uses ofDate injavax.security.auth.kerberos
Methods injavax.security.auth.kerberos that returnDateModifier and TypeMethodDescriptionfinalDateKerberosTicket.getAuthTime()Returns the time that the client was authenticated.finalDateKerberosTicket.getEndTime()Returns the expiration time for this ticket's validity period.finalDateKerberosTicket.getRenewTill()Returns the latest expiration time for this ticket, including all renewals.finalDateKerberosTicket.getStartTime()Returns the start time for this ticket's validity period.Constructors injavax.security.auth.kerberos with parameters of typeDateModifierConstructorDescriptionKerberosTicket(byte[] asn1Encoding,KerberosPrincipal client,KerberosPrincipal server, byte[] sessionKey, int keyType, boolean[] flags,Date authTime,Date startTime,Date endTime,Date renewTill,InetAddress[] clientAddresses) Constructs aKerberosTicketusing credentials information that a client either receives from a KDC or reads from a cache.Uses ofDate injavax.security.cert
Methods injavax.security.cert that returnDateModifier and TypeMethodDescriptionabstractDateX509Certificate.getNotAfter()Deprecated, for removal: This API element is subject to removal in a future version.Gets thenotAfterdate from the validity period of the certificate.abstractDateX509Certificate.getNotBefore()Deprecated, for removal: This API element is subject to removal in a future version.Gets thenotBeforedate from the validity period of the certificate.Methods injavax.security.cert with parameters of typeDateModifier and TypeMethodDescriptionabstract voidX509Certificate.checkValidity(Date date) Deprecated, for removal: This API element is subject to removal in a future version.Checks that the specified date is within the certificate's validity period.Uses ofDate injavax.swing
Methods injavax.swing that returnDateModifier and TypeMethodDescriptionSpinnerDateModel.getDate()Returns the current element in this sequence ofDates.Methods injavax.swing that return types with arguments of typeDateModifier and TypeMethodDescriptionSpinnerDateModel.getEnd()Returns the lastDatein the sequence.SpinnerDateModel.getStart()Returns the firstDatein the sequence.Methods injavax.swing with parameters of typeDateModifier and TypeMethodDescriptionstatic <M,I> RowFilter<M, I> RowFilter.dateFilter(RowFilter.ComparisonType type,Date date, int... indices) Returns aRowFilterthat includes entries that have at least oneDatevalue meeting the specified criteria.Method parameters injavax.swing with type arguments of typeDateModifier and TypeMethodDescriptionvoidSpinnerDateModel.setEnd(Comparable<Date> end) Changes the upper limit forDates in this sequence.voidSpinnerDateModel.setStart(Comparable<Date> start) Changes the lower limit for Dates in this sequence.Constructors injavax.swing with parameters of typeDateModifierConstructorDescriptionSpinnerDateModel(Date value,Comparable<Date> start,Comparable<Date> end, int calendarField) Creates aSpinnerDateModelthat represents a sequence of dates betweenstartandend.Constructor parameters injavax.swing with type arguments of typeDateModifierConstructorDescriptionSpinnerDateModel(Date value,Comparable<Date> start,Comparable<Date> end, int calendarField) Creates aSpinnerDateModelthat represents a sequence of dates betweenstartandend.Uses ofDate injavax.xml.datatype
Methods injavax.xml.datatype with parameters of typeDateModifier and TypeMethodDescriptionvoidAdds this duration to aDateobject.longDuration.getTimeInMillis(Date startInstant) Returns the length of the duration in milli-seconds.