Comparison Date functions


Standard Syntax:
     <%@ taglib prefix="cdate" uri="http://jsftools.logikdev.com/cdate" %>

XML Syntax:
     <anyxmlelement xmlns:cdate="http://jsftools.logikdev.com/cdate" />

JSF Tools 0.3 Date functions library

Tag Library Information
Display NameComparison Date functions
Version0.3
Short Namecdate
URIhttp://jsftools.logikdev.com/cdate
 

Function Summary
java.lang.Stringformat( java.lang.String, java.lang.Object, java.util.Locale, java.util.TimeZone)Returns a formatted string representing the specified date, Locale, and TimeZone.
java.lang.StringformatByStyles( java.lang.String, java.lang.String, java.lang.Object, java.util.Locale, java.util.TimeZone)Returns the specified date as a string formatted according to the specified Locale and date and/or time styles.
java.lang.Stringget( java.lang.String)Returns a formatted string representing the date returned by getDate().
java.lang.StringgetByStyles( java.lang.String, java.lang.String)Returns a formatted string representing the date and/or time given by getDate() in standard, localized patterns.
java.util.CalendargetCalendar( )Returns a Calendar instance created using the timezone and locale returned by getTimeZone() and getLocale().
java.util.DategetDate( )Returns a Date derived from the result of getCalendar().
java.text.DateFormatgetDateFormat( java.lang.String, java.util.Locale, java.util.TimeZone)Returns a DateFormat instance for the specified format, Locale, and TimeZone.
java.text.DateFormatgetDateFormatByStyles( java.lang.String, java.lang.String, java.util.Locale, java.util.TimeZone)Returns a DateFormat instance for the specified date style, time style, Locale, and TimeZone.
java.lang.IntegergetDay( java.lang.Object)Returns the day (of the month) value for the specified date.
java.lang.IntegergetMonth( java.lang.Object)Returns the month value of the specified date.
java.util.CalendargetSystemCalendar( )Returns the system's current time as a Calendar.
java.util.DategetSystemDate( )Returns the system's current time as a Date.
longgetSystemTime( )Returns the system's current time as the number of milliseconds elapsed since January 1, 1970, 00:00:00 GMT.
java.util.TimeZonegetTimeZone( )Returns the configured TimeZone.
java.lang.IntegergetValue( java.lang.Object, java.lang.Object)Returns the specified value of the specified date, or null if the field or date is invalid.
java.lang.IntegergetYear( java.lang.Object)Returns the year value of the specified date.
java.util.CalendartoCalendar( java.lang.Object, java.util.Locale)Converts an object to an instance of Calendar using the locale returned by LocaleConfig.getLocale() if necessary.
java.util.DatetoDate( java.lang.String, java.lang.Object, java.util.Locale, java.util.TimeZone)Converts an object to an instance of Date using the specified format, Locale, and TimeZone.
org.apache.velocity.tools.generic.ComparisonDateTool.Comparisondifference( java.lang.Object, java.lang.Object)Returns a ComparisonDateTool.Comparison between the result of the second specified date and the first specified date.
longtoDays( long)Returns the number of whole Days in the specified number of milliseconds.
longtoHours( long)Returns the number of whole Hours in the specified number of milliseconds.
longtoMinutes( long)Returns the number of whole Minutes in the specified number of milliseconds.
longtoMonths( long)Returns the number of whole Months in the specified number of milliseconds.
longtoSeconds( long)Returns the number of whole Seconds in the specified number of milliseconds.
longtoWeeks( long)Returns the number of whole Weeks in the specified number of milliseconds.
longtoYears( long)Returns the number of whole Years in the specified number of milliseconds.
org.apache.velocity.tools.generic.ComparisonDateTool.ComparisonwhenIs( java.lang.Object, java.lang.Object)Returns a ComparisonDateTool.Comparison between the second specified date and the first specified date.
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.