1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.kernel.util;
21  
22  /**
23   * <a href="DateUtil_IW.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class DateUtil_IW {
29      public static DateUtil_IW getInstance() {
30          return _instance;
31      }
32  
33      public int compareTo(java.util.Date date1, java.util.Date date2) {
34          return DateUtil.compareTo(date1, date2);
35      }
36  
37      public java.lang.String getCurrentDate(java.lang.String pattern,
38          java.util.Locale locale) {
39          return DateUtil.getCurrentDate(pattern, locale);
40      }
41  
42      public java.lang.String getCurrentDate(java.lang.String pattern,
43          java.util.Locale locale, java.util.TimeZone timeZone) {
44          return DateUtil.getCurrentDate(pattern, locale, timeZone);
45      }
46  
47      public java.lang.String getDate(java.util.Date date,
48          java.lang.String pattern, java.util.Locale locale) {
49          return DateUtil.getDate(date, pattern, locale);
50      }
51  
52      public java.lang.String getDate(java.util.Date date,
53          java.lang.String pattern, java.util.Locale locale,
54          java.util.TimeZone timeZone) {
55          return DateUtil.getDate(date, pattern, locale, timeZone);
56      }
57  
58      public int getDaysBetween(java.util.Date startDate, java.util.Date endDate,
59          java.util.TimeZone timeZone) {
60          return DateUtil.getDaysBetween(startDate, endDate, timeZone);
61      }
62  
63      public java.text.DateFormat getISOFormat() {
64          return DateUtil.getISOFormat();
65      }
66  
67      public java.text.DateFormat getISOFormat(java.lang.String text) {
68          return DateUtil.getISOFormat(text);
69      }
70  
71      public java.text.DateFormat getISO8601Format() {
72          return DateUtil.getISO8601Format();
73      }
74  
75      public java.text.DateFormat getUTCFormat() {
76          return DateUtil.getUTCFormat();
77      }
78  
79      public java.text.DateFormat getUTCFormat(java.lang.String text) {
80          return DateUtil.getUTCFormat(text);
81      }
82  
83      public java.util.Date newDate() {
84          return DateUtil.newDate();
85      }
86  
87      public java.util.Date newDate(long date) {
88          return DateUtil.newDate(date);
89      }
90  
91      private DateUtil_IW() {
92      }
93  
94      private static DateUtil_IW _instance = new DateUtil_IW();
95  }