Class Ephemeris

java.lang.Object
org.openhab.core.model.script.actions.Ephemeris

public class Ephemeris extends Object
The static methods of this class are made available as functions in the scripts. This allows a script to use ephemeris features.
Author:
Gaƫl L'hopital - Initial contribution
  • Constructor Details

    • Ephemeris

      public Ephemeris()
  • Method Details

    • isWeekend

      public static boolean isWeekend()
    • isWeekend

      public static boolean isWeekend(int offset)
    • isWeekend

      public static boolean isWeekend(ZonedDateTime day)
    • isInDayset

      public static boolean isInDayset(String daysetName)
    • isInDayset

      public static boolean isInDayset(String daysetName, int offset)
    • isInDayset

      public static boolean isInDayset(String daysetName, ZonedDateTime day)
    • isBankHoliday

      public static boolean isBankHoliday()
    • isBankHoliday

      public static boolean isBankHoliday(int offset)
    • isBankHoliday

      public static boolean isBankHoliday(ZonedDateTime day)
    • isBankHoliday

      public static boolean isBankHoliday(String filename)
    • isBankHoliday

      public static boolean isBankHoliday(int offset, String filename)
    • isBankHoliday

      public static boolean isBankHoliday(ZonedDateTime day, String filename)
    • getBankHolidayName

      public static @Nullable String getBankHolidayName()
    • getBankHolidayName

      public static @Nullable String getBankHolidayName(int offset)
    • getBankHolidayName

      public static @Nullable String getBankHolidayName(ZonedDateTime day)
    • getBankHolidayName

      public static @Nullable String getBankHolidayName(String filename)
    • getBankHolidayName

      public static @Nullable String getBankHolidayName(int offset, String filename)
    • getBankHolidayName

      public static @Nullable String getBankHolidayName(ZonedDateTime day, String filename)
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday()
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday(int offset)
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday(ZonedDateTime day)
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday(String filename)
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday(int offset, String filename)
    • getNextBankHoliday

      public static @Nullable String getNextBankHoliday(ZonedDateTime day, String filename)
    • getHolidayDescription

      public static @Nullable String getHolidayDescription(@Nullable String holiday)
    • getDaysUntil

      public static long getDaysUntil(String searchedHoliday)
    • getDaysUntil

      public static long getDaysUntil(ZonedDateTime day, String searchedHoliday)
    • getDaysUntil

      public static long getDaysUntil(String searchedHoliday, String filename)
    • getDaysUntil

      public static long getDaysUntil(ZonedDateTime day, String searchedHoliday, String filename)