public class CalendarUtil extends Object
Constructor and Description |
---|
CalendarUtil() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Set<Holiday> holidays,
LocalDate date)
Shows if the requested dat is contained in the Set of holidays.
|
LocalDate |
create()
Creates the current date within the gregorian calendar.
|
LocalDate |
create(Calendar c)
Creates a LocalDate.
|
LocalDate |
create(int year,
de.jollyday.config.Fixed fixed)
Creates the date from the month/day within the specified year.
|
LocalDate |
create(int year,
int month,
int day)
Creates the date within the ISO chronology.
|
ChronoLocalDate |
create(int year,
int month,
int day,
Chronology chronology)
Creates the date within the provided chronology.
|
LocalDate |
getEasterSunday(int year)
Returns the easter sunday for a given year.
|
Set<LocalDate> |
getEthiopianOrthodoxHolidaysInGregorianYear(int gregorianYear,
int eoMonth,
int eoDay)
Returns a set of gregorian dates within a gregorian year which equal the
ethiopian orthodox month and day.
|
LocalDate |
getGregorianEasterSunday(int year)
Returns the easter sunday within the gregorian chronology.
|
Set<LocalDate> |
getIslamicHolidaysInGregorianYear(int gregorianYear,
int islamicMonth,
int islamicDay)
Returns a set of gregorian dates within a gregorian year which equal the
islamic month and day.
|
LocalDate |
getJulianEasterSunday(int year)
Returns the easter sunday within the julian chronology.
|
boolean |
isWeekend(LocalDate date)
Returns if this date is on a wekkend.
|
public LocalDate create()
public LocalDate create(int year, int month, int day)
year
- a int.month
- a int.day
- a int.public ChronoLocalDate create(int year, int month, int day, Chronology chronology)
year
- a int.month
- a int.day
- a int.chronology
- the chronology to useLocalDate
public LocalDate create(int year, de.jollyday.config.Fixed fixed)
year
- a int.fixed
- a Fixed
object.public LocalDate create(Calendar c)
c
- a Calendar
object.public LocalDate getEasterSunday(int year)
year
- a int.public LocalDate getJulianEasterSunday(int year)
year
- a int.public LocalDate getGregorianEasterSunday(int year)
year
- a int.public boolean isWeekend(LocalDate date)
date
- a LocalDate
object.public Set<LocalDate> getIslamicHolidaysInGregorianYear(int gregorianYear, int islamicMonth, int islamicDay)
gregorianYear
- a int.islamicMonth
- a int.islamicDay
- a int.public Set<LocalDate> getEthiopianOrthodoxHolidaysInGregorianYear(int gregorianYear, int eoMonth, int eoDay)
gregorianYear
- a int.eoMonth
- a int.eoDay
- a int.Copyright © 18.01.2010–2015. All rights reserved.