1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.kernel.util;
16  
17  /**
18   * <a href="DateUtil_IW.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public class DateUtil_IW {
23      public static DateUtil_IW getInstance() {
24          return _instance;
25      }
26  
27      public int compareTo(java.util.Date date1, java.util.Date date2) {
28          return DateUtil.compareTo(date1, date2);
29      }
30  
31      public int compareTo(java.util.Date date1, java.util.Date date2,
32          boolean ignoreMilliseconds) {
33          return DateUtil.compareTo(date1, date2, ignoreMilliseconds);
34      }
35  
36      public boolean equals(java.util.Date date1, java.util.Date date2) {
37          return DateUtil.equals(date1, date2);
38      }
39  
40      public boolean equals(java.util.Date date1, java.util.Date date2,
41          boolean ignoreMilliseconds) {
42          return DateUtil.equals(date1, date2, ignoreMilliseconds);
43      }
44  
45      public java.lang.String getCurrentDate(java.lang.String pattern,
46          java.util.Locale locale) {
47          return DateUtil.getCurrentDate(pattern, locale);
48      }
49  
50      public java.lang.String getCurrentDate(java.lang.String pattern,
51          java.util.Locale locale, java.util.TimeZone timeZone) {
52          return DateUtil.getCurrentDate(pattern, locale, timeZone);
53      }
54  
55      public java.lang.String getDate(java.util.Date date,
56          java.lang.String pattern, java.util.Locale locale) {
57          return DateUtil.getDate(date, pattern, locale);
58      }
59  
60      public java.lang.String getDate(java.util.Date date,
61          java.lang.String pattern, java.util.Locale locale,
62          java.util.TimeZone timeZone) {
63          return DateUtil.getDate(date, pattern, locale, timeZone);
64      }
65  
66      public int getDaysBetween(java.util.Date startDate, java.util.Date endDate,
67          java.util.TimeZone timeZone) {
68          return DateUtil.getDaysBetween(startDate, endDate, timeZone);
69      }
70  
71      public java.text.DateFormat getISOFormat() {
72          return DateUtil.getISOFormat();
73      }
74  
75      public java.text.DateFormat getISOFormat(java.lang.String text) {
76          return DateUtil.getISOFormat(text);
77      }
78  
79      public java.text.DateFormat getISO8601Format() {
80          return DateUtil.getISO8601Format();
81      }
82  
83      public java.text.DateFormat getUTCFormat() {
84          return DateUtil.getUTCFormat();
85      }
86  
87      public java.text.DateFormat getUTCFormat(java.lang.String text) {
88          return DateUtil.getUTCFormat(text);
89      }
90  
91      public java.util.Date newDate() {
92          return DateUtil.newDate();
93      }
94  
95      public java.util.Date newDate(long date) {
96          return DateUtil.newDate(date);
97      }
98  
99      private DateUtil_IW() {
100     }
101 
102     private static DateUtil_IW _instance = new DateUtil_IW();
103 }