001    /**
002     * Copyright (c) 2000-present 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 boolean equals(java.util.Date date1, java.util.Date date2) {
030                    return DateUtil.equals(date1, date2);
031            }
032    
033            public java.lang.String getCurrentDate(java.lang.String pattern,
034                    java.util.Locale locale) {
035                    return DateUtil.getCurrentDate(pattern, locale);
036            }
037    
038            public java.lang.String getCurrentDate(java.lang.String pattern,
039                    java.util.Locale locale, java.util.TimeZone timeZone) {
040                    return DateUtil.getCurrentDate(pattern, locale, timeZone);
041            }
042    
043            public java.lang.String getDate(java.util.Date date,
044                    java.lang.String pattern, java.util.Locale locale) {
045                    return DateUtil.getDate(date, pattern, locale);
046            }
047    
048            public java.lang.String getDate(java.util.Date date,
049                    java.lang.String pattern, java.util.Locale locale,
050                    java.util.TimeZone timeZone) {
051                    return DateUtil.getDate(date, pattern, locale, timeZone);
052            }
053    
054            public int getDaysBetween(java.util.Date date1, java.util.Date date2) {
055                    return DateUtil.getDaysBetween(date1, date2);
056            }
057    
058            public int getDaysBetween(java.util.Date date1, java.util.Date date2,
059                    java.util.TimeZone timeZone) {
060                    return DateUtil.getDaysBetween(date1, date2, timeZone);
061            }
062    
063            public java.text.DateFormat getISO8601Format() {
064                    return DateUtil.getISO8601Format();
065            }
066    
067            public java.text.DateFormat getISOFormat() {
068                    return DateUtil.getISOFormat();
069            }
070    
071            public java.text.DateFormat getISOFormat(java.lang.String text) {
072                    return DateUtil.getISOFormat(text);
073            }
074    
075            public java.text.DateFormat getUTCFormat() {
076                    return DateUtil.getUTCFormat();
077            }
078    
079            public java.text.DateFormat getUTCFormat(java.lang.String text) {
080                    return DateUtil.getUTCFormat(text);
081            }
082    
083            public boolean isFormatAmPm(java.util.Locale locale) {
084                    return DateUtil.isFormatAmPm(locale);
085            }
086    
087            public java.util.Date newDate() {
088                    return DateUtil.newDate();
089            }
090    
091            public java.util.Date newDate(long date) {
092                    return DateUtil.newDate(date);
093            }
094    
095            public long newTime() {
096                    return DateUtil.newTime();
097            }
098    
099            public java.util.Date parseDate(java.lang.String dateString,
100                    java.util.Locale locale) throws java.text.ParseException {
101                    return DateUtil.parseDate(dateString, locale);
102            }
103    
104            private DateUtil_IW() {
105            }
106    
107            private static DateUtil_IW _instance = new DateUtil_IW();
108    }