Java Doc for DateUtil.java in  » Blogger-System » apache-roller-3.1 » org » apache » roller » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Blogger System » apache roller 3.1 » org.apache.roller.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.roller.util.DateUtil

DateUtil
abstract public class DateUtil (Code)
General purpose date utilities.


Field Summary
final public static  longmillisInDay
    


Method Summary
public static  StringdefaultDate(Date date)
    
public static  SimpleDateFormatdefaultDateFormat()
    
public static  StringdefaultTimestamp(Date date)
    
public static  SimpleDateFormatdefaultTimestampFormat()
    
public static  Stringformat(Date aDate, SimpleDateFormat aFormat)
     Returns a string the represents the passed-in date parsed according to the passed-in format.
public static  Stringformat6chars(Date date)
    
public static  Stringformat8chars(Date date)
    
public static  StringformatIso8601(Date date)
    
public static  StringformatIso8601Day(Date date)
    
public static  StringformatRfc822(Date date)
    
public static  StringfriendlyDate(Date date, boolean minimalFormat)
     Format the date using the "friendly" date format.
public static  StringfriendlyDate(Date date)
    
public static  SimpleDateFormatfriendlyDateFormat(boolean minimalFormat)
     Returns a "friendly" date format.
public static  StringfriendlyTimestamp(Date date)
    
public static  SimpleDateFormatfriendlyTimestampFormat()
    
public static  StringfullDate(Date date)
    
public static  SimpleDateFormatfullDateFormat()
    
public static  SimpleDateFormatget6charDateFormat()
    
public static  SimpleDateFormatget8charDateFormat()
    
public static  DategetEndOfDay(Date day)
     Returns a Date set to the last possible millisecond of the day, just before midnight.
public static  DategetEndOfDay(Date day, Calendar cal)
    
public static  DategetEndOfHour(Date day)
     Returns a Date set to the last possible millisecond of the day, just before midnight.
public static  DategetEndOfHour(Date day, Calendar cal)
    
public static  DategetEndOfMonth(Date day)
     Returns a Date set to the last possible millisecond of the month, just before midnight.
public static  DategetEndOfMonth(Date day, Calendar cal)
    
public static  SimpleDateFormatgetIso8601DateFormat()
    
public static  SimpleDateFormatgetIso8601DayDateFormat()
    
public static  DategetNoonOfDay(Date day, Calendar cal)
     Returns a Date set just to Noon, to the closest possible millisecond of the day.
public static  SimpleDateFormatgetRfc822DateFormat()
    
public static  DategetStartOfDay(Date day)
     Returns a Date set to the first possible millisecond of the day, just after midnight.
public static  DategetStartOfDay(Date day, Calendar cal)
     Returns a Date set to the first possible millisecond of the day, just after midnight.
public static  DategetStartOfMonth(Date day)
     Returns a Date set to the first possible millisecond of the month, just after midnight.
public static  DategetStartOfMonth(Date day, Calendar cal)
    
public static  booleanisValidDateRange(Date startDate, Date endDate)
     Returns true if endDate is after startDate or if startDate equals endDate or if they are the same date.
public static  booleanisValidDateRange(Date startDate, Date endDate, boolean equalOK)
     Returns true if endDate is after startDate or if startDate equals endDate. Returns false if either value is null.
public static  StringminimalDate(Date date)
    
public static  java.text.SimpleDateFormatminimalDateFormat()
    
public static  java.sql.Timestampnow()
    
public static  Dateparse(String aValue, SimpleDateFormat aFormat)
     Returns a Date using the passed-in string and format.
public static  DateparseIso8601(String value)
    
public static  DateparseWeblogURLDateString(String dateString, TimeZone tz, Locale locale)
     Parse data as either 6-char or 8-char format.

Field Detail
millisInDay
final public static long millisInDay(Code)





Method Detail
defaultDate
public static String defaultDate(Date date)(Code)



defaultDateFormat
public static SimpleDateFormat defaultDateFormat()(Code)



defaultTimestamp
public static String defaultTimestamp(Date date)(Code)



defaultTimestampFormat
public static SimpleDateFormat defaultTimestampFormat()(Code)



format
public static String format(Date aDate, SimpleDateFormat aFormat)(Code)
Returns a string the represents the passed-in date parsed according to the passed-in format. Returns an empty string if the date or the format is null.



format6chars
public static String format6chars(Date date)(Code)



format8chars
public static String format8chars(Date date)(Code)



formatIso8601
public static String formatIso8601(Date date)(Code)



formatIso8601Day
public static String formatIso8601Day(Date date)(Code)



formatRfc822
public static String formatRfc822(Date date)(Code)



friendlyDate
public static String friendlyDate(Date date, boolean minimalFormat)(Code)
Format the date using the "friendly" date format.



friendlyDate
public static String friendlyDate(Date date)(Code)



friendlyDateFormat
public static SimpleDateFormat friendlyDateFormat(boolean minimalFormat)(Code)
Returns a "friendly" date format.
Parameters:
  mimimalFormat - Should the date format allow single digits.



friendlyTimestamp
public static String friendlyTimestamp(Date date)(Code)



friendlyTimestampFormat
public static SimpleDateFormat friendlyTimestampFormat()(Code)



fullDate
public static String fullDate(Date date)(Code)



fullDateFormat
public static SimpleDateFormat fullDateFormat()(Code)



get6charDateFormat
public static SimpleDateFormat get6charDateFormat()(Code)



get8charDateFormat
public static SimpleDateFormat get8charDateFormat()(Code)



getEndOfDay
public static Date getEndOfDay(Date day)(Code)
Returns a Date set to the last possible millisecond of the day, just before midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getEndOfDay
public static Date getEndOfDay(Date day, Calendar cal)(Code)



getEndOfHour
public static Date getEndOfHour(Date day)(Code)
Returns a Date set to the last possible millisecond of the day, just before midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getEndOfHour
public static Date getEndOfHour(Date day, Calendar cal)(Code)



getEndOfMonth
public static Date getEndOfMonth(Date day)(Code)
Returns a Date set to the last possible millisecond of the month, just before midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getEndOfMonth
public static Date getEndOfMonth(Date day, Calendar cal)(Code)



getIso8601DateFormat
public static SimpleDateFormat getIso8601DateFormat()(Code)



getIso8601DayDateFormat
public static SimpleDateFormat getIso8601DayDateFormat()(Code)



getNoonOfDay
public static Date getNoonOfDay(Date day, Calendar cal)(Code)
Returns a Date set just to Noon, to the closest possible millisecond of the day. If a null day is passed in, a new Date is created. nnoon (00m 12h 00s)



getRfc822DateFormat
public static SimpleDateFormat getRfc822DateFormat()(Code)



getStartOfDay
public static Date getStartOfDay(Date day)(Code)
Returns a Date set to the first possible millisecond of the day, just after midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getStartOfDay
public static Date getStartOfDay(Date day, Calendar cal)(Code)
Returns a Date set to the first possible millisecond of the day, just after midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getStartOfMonth
public static Date getStartOfMonth(Date day)(Code)
Returns a Date set to the first possible millisecond of the month, just after midnight. If a null day is passed in, a new Date is created. midnight (00m 00h 00s)



getStartOfMonth
public static Date getStartOfMonth(Date day, Calendar cal)(Code)



isValidDateRange
public static boolean isValidDateRange(Date startDate, Date endDate)(Code)
Returns true if endDate is after startDate or if startDate equals endDate or if they are the same date. Returns false if either value is null.



isValidDateRange
public static boolean isValidDateRange(Date startDate, Date endDate, boolean equalOK)(Code)
Returns true if endDate is after startDate or if startDate equals endDate. Returns false if either value is null. If equalOK, returns true if the dates are equal.



minimalDate
public static String minimalDate(Date date)(Code)



minimalDateFormat
public static java.text.SimpleDateFormat minimalDateFormat()(Code)



now
public static java.sql.Timestamp now()(Code)
Returns a java.sql.Timestamp equal to the current time



parse
public static Date parse(String aValue, SimpleDateFormat aFormat) throws ParseException(Code)
Returns a Date using the passed-in string and format. Returns null if the string is null or empty or if the format is null. The string must match the format.



parseIso8601
public static Date parseIso8601(String value) throws Exception(Code)



parseWeblogURLDateString
public static Date parseWeblogURLDateString(String dateString, TimeZone tz, Locale locale)(Code)
Parse data as either 6-char or 8-char format.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.