org.japura.util.date
Class DateUtil

java.lang.Object
  extended by org.japura.util.date.DateUtil

public final class DateUtil
extends java.lang.Object

Copyright (C) 2011 Carlos Eduardo Leite de Andrade

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see www.gnu.org/licenses/

For more information, contact: www.japura.org

Author:
Carlos Eduardo Leite de Andrade

Constructor Summary
DateUtil()
           
 
Method Summary
static java.util.Date toDate(java.lang.String date, DateMask mask, DateSeparator separator)
           
static java.util.Date toDate(java.lang.String date, java.util.Locale locale, DateSeparator separator)
           
static java.lang.String toString(DateMask mask, DateSeparator separator, int day, int month, int year)
           
static java.lang.String toString(DateMask mask, DateSeparator separator, long date)
           
static java.lang.String toString(DateMask mask, DateSeparator separator, long date, java.util.TimeZone timeZone)
           
static java.lang.String toString(java.util.Locale locale, DateSeparator separator, long date)
           
static java.lang.String toString(java.util.Locale locale, DateSeparator separator, long date, java.util.TimeZone timeZone)
           
static boolean validate(java.lang.String date, DateMask mask, DateSeparator separator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtil

public DateUtil()
Method Detail

validate

public static boolean validate(java.lang.String date,
                               DateMask mask,
                               DateSeparator separator)

toDate

public static java.util.Date toDate(java.lang.String date,
                                    java.util.Locale locale,
                                    DateSeparator separator)

toDate

public static java.util.Date toDate(java.lang.String date,
                                    DateMask mask,
                                    DateSeparator separator)

toString

public static java.lang.String toString(java.util.Locale locale,
                                        DateSeparator separator,
                                        long date)

toString

public static java.lang.String toString(java.util.Locale locale,
                                        DateSeparator separator,
                                        long date,
                                        java.util.TimeZone timeZone)

toString

public static java.lang.String toString(DateMask mask,
                                        DateSeparator separator,
                                        long date)

toString

public static java.lang.String toString(DateMask mask,
                                        DateSeparator separator,
                                        long date,
                                        java.util.TimeZone timeZone)

toString

public static java.lang.String toString(DateMask mask,
                                        DateSeparator separator,
                                        int day,
                                        int month,
                                        int year)