001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public class DateUtil_IW {
021            public static DateUtil_IW getInstance() {
022                    return _instance;
023            }
024    
025            public int compareTo(java.util.Date date1, java.util.Date date2) {
026                    return DateUtil.compareTo(date1, date2);
027            }
028    
029            public int compareTo(java.util.Date date1, java.util.Date date2,
030                    boolean ignoreMilliseconds) {
031                    return DateUtil.compareTo(date1, date2, ignoreMilliseconds);
032            }
033    
034            public boolean equals(java.util.Date date1, java.util.Date date2) {
035                    return DateUtil.equals(date1, date2);
036            }
037    
038            public boolean equals(java.util.Date date1, java.util.Date date2,
039                    boolean ignoreMilliseconds) {
040                    return DateUtil.equals(date1, date2, ignoreMilliseconds);
041            }
042    
043            public java.lang.String getCurrentDate(java.lang.String pattern,
044                    java.util.Locale locale) {
045                    return DateUtil.getCurrentDate(pattern, locale);
046            }
047    
048            public java.lang.String getCurrentDate(java.lang.String pattern,
049                    java.util.Locale locale, java.util.TimeZone timeZone) {
050                    return DateUtil.getCurrentDate(pattern, locale, timeZone);
051            }
052    
053            public java.lang.String getDate(java.util.Date date,
054                    java.lang.String pattern, java.util.Locale locale) {
055                    return DateUtil.getDate(date, pattern, locale);
056            }
057    
058            public java.lang.String getDate(java.util.Date date,
059                    java.lang.String pattern, java.util.Locale locale,
060                    java.util.TimeZone timeZone) {
061                    return DateUtil.getDate(date, pattern, locale, timeZone);
062            }
063    
064            public int getDaysBetween(java.util.Date startDate, java.util.Date endDate,
065                    java.util.TimeZone timeZone) {
066                    return DateUtil.getDaysBetween(startDate, endDate, timeZone);
067            }
068    
069            public java.text.DateFormat getISOFormat() {
070                    return DateUtil.getISOFormat();
071            }
072    
073            public java.text.DateFormat getISOFormat(java.lang.String text) {
074                    return DateUtil.getISOFormat(text);
075            }
076    
077            public java.text.DateFormat getISO8601Format() {
078                    return DateUtil.getISO8601Format();
079            }
080    
081            public java.text.DateFormat getUTCFormat() {
082                    return DateUtil.getUTCFormat();
083            }
084    
085            public java.text.DateFormat getUTCFormat(java.lang.String text) {
086                    return DateUtil.getUTCFormat(text);
087            }
088    
089            public java.util.Date newDate() {
090                    return DateUtil.newDate();
091            }
092    
093            public java.util.Date newDate(long date) {
094                    return DateUtil.newDate(date);
095            }
096    
097            private DateUtil_IW() {
098            }
099    
100            private static DateUtil_IW _instance = new DateUtil_IW();
101    }