JTools

org.jtools.util
Class CalendarUtils

java.lang.Object
  extended by org.jtools.util.CalendarUtils

public class CalendarUtils
extends Object

TODO type-description

Author:
Rainer Noack

Constructor Summary
CalendarUtils()
           
 
Method Summary
static int getAnsiiButcherEastern(short year)
           
static int getAnsiiDate(byte dayInMonth, byte monthInYear, short year)
           
static byte getAnsiiDayInMonth(int ansiiDate)
           
static short getAnsiiDayInYear(byte dayInMonth, byte monthInYear, short year)
           
static short getAnsiiDayInYear(int ansiiDate)
           
static int getAnsiiEastern(short year)
           
static int getAnsiiGaussEastern(short year)
           
static int getAnsiiHoliday(Holiday holiday, short year)
           
static byte getAnsiiMonthInYear(int ansiiDate)
           
static short getAnsiiYear(int ansiiDate)
           
static Weekday getDayInWeek(byte dayInMonth, byte monthInYear, short year)
           
static Weekday getDayInWeek(int ansiiDate)
           
static long getJulianDayNumber(byte dayinMonth, byte monthInYear, short year)
           
static byte getUltimo(byte monthInYear, short year)
           
static int incAnsiiDays(byte dayInMonth, byte monthInYear, short year, int count)
           
static int incAnsiiDays(int ansiiDate, int count)
           
static boolean isGregorian(byte dayInMonth, byte monthInYear, short year)
           
static boolean isGregorian(int ansiiDate)
           
static boolean isLeapYear(short year)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarUtils

public CalendarUtils()
Method Detail

getAnsiiButcherEastern

public static int getAnsiiButcherEastern(short year)
                                  throws IllegalArgumentException
Throws:
IllegalArgumentException

getAnsiiDate

public static int getAnsiiDate(byte dayInMonth,
                               byte monthInYear,
                               short year)

getAnsiiDayInMonth

public static byte getAnsiiDayInMonth(int ansiiDate)

getAnsiiDayInYear

public static short getAnsiiDayInYear(byte dayInMonth,
                                      byte monthInYear,
                                      short year)

getAnsiiDayInYear

public static short getAnsiiDayInYear(int ansiiDate)

getAnsiiEastern

public static int getAnsiiEastern(short year)

getAnsiiGaussEastern

public static int getAnsiiGaussEastern(short year)

getAnsiiHoliday

public static int getAnsiiHoliday(Holiday holiday,
                                  short year)

getAnsiiMonthInYear

public static byte getAnsiiMonthInYear(int ansiiDate)

getAnsiiYear

public static short getAnsiiYear(int ansiiDate)

getDayInWeek

public static Weekday getDayInWeek(byte dayInMonth,
                                   byte monthInYear,
                                   short year)

getDayInWeek

public static Weekday getDayInWeek(int ansiiDate)

getJulianDayNumber

public static long getJulianDayNumber(byte dayinMonth,
                                      byte monthInYear,
                                      short year)

getUltimo

public static byte getUltimo(byte monthInYear,
                             short year)

incAnsiiDays

public static int incAnsiiDays(byte dayInMonth,
                               byte monthInYear,
                               short year,
                               int count)

incAnsiiDays

public static int incAnsiiDays(int ansiiDate,
                               int count)

isGregorian

public static boolean isGregorian(byte dayInMonth,
                                  byte monthInYear,
                                  short year)

isGregorian

public static boolean isGregorian(int ansiiDate)

isLeapYear

public static boolean isLeapYear(short year)

JTools

© 2000-2006, JTools.org.