001    /**
002     * Copyright (c) 2000-2013 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 date1, java.util.Date date2) {
065                    return DateUtil.getDaysBetween(date1, date2);
066            }
067    
068            public int getDaysBetween(java.util.Date date1, java.util.Date date2,
069                    java.util.TimeZone timeZone) {
070                    return DateUtil.getDaysBetween(date1, date2, timeZone);
071            }
072    
073            public java.text.DateFormat getISO8601Format() {
074                    return DateUtil.getISO8601Format();
075            }
076    
077            public java.text.DateFormat getISOFormat() {
078                    return DateUtil.getISOFormat();
079            }
080    
081            public java.text.DateFormat getISOFormat(java.lang.String text) {
082                    return DateUtil.getISOFormat(text);
083            }
084    
085            public java.text.DateFormat getUTCFormat() {
086                    return DateUtil.getUTCFormat();
087            }
088    
089            public java.text.DateFormat getUTCFormat(java.lang.String text) {
090                    return DateUtil.getUTCFormat(text);
091            }
092    
093            public boolean isFormatAmPm(java.util.Locale locale) {
094                    return DateUtil.isFormatAmPm(locale);
095            }
096    
097            public java.util.Date newDate() {
098                    return DateUtil.newDate();
099            }
100    
101            public java.util.Date newDate(long date) {
102                    return DateUtil.newDate(date);
103            }
104    
105            public long newTime() {
106                    return DateUtil.newTime();
107            }
108    
109            public java.util.Date parseDate(java.lang.String dateString,
110                    java.util.Locale locale) throws java.text.ParseException {
111                    return DateUtil.parseDate(dateString, locale);
112            }
113    
114            private DateUtil_IW() {
115            }
116    
117            private static DateUtil_IW _instance = new DateUtil_IW();
118    }