Package com.acelet.lib

Examples of com.acelet.lib.Luner


import com.acelet.lib.Luner;
import com.acelet.lib.Phrase;

public class GoodfridayHolidaying implements Holidaying {
  public long getTheHoliday(int year) {
    long nextFullMoon = new Luner().nextFullMoon(year + "-" + "03" + "-" + 21);
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date(nextFullMoon));
    calendar.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);
    return calendar.getTime().getTime();
  }
View Full Code Here


import com.acelet.lib.Luner;
import com.acelet.lib.Phrase;

public class EasterMondayHolidaying implements Holidaying {
  public long getTheHoliday(int year) {
    long nextFullMoon = new Luner().nextFullMoon(year + "-" + "03" + "-" + 21);
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date(nextFullMoon));
    calendar.set(Calendar.DAY_OF_WEEK, Calendar.FRIDAY);
    calendar.add(Calendar.DATE, 3);
    return calendar.getTime().getTime();
View Full Code Here

TOP

Related Classes of com.acelet.lib.Luner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.