1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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 }