Class Ephemeris
java.lang.Object
org.openhab.core.model.script.actions.Ephemeris
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable String
static @Nullable String
getBankHolidayName
(int offset) static @Nullable String
getBankHolidayName
(int offset, String filename) static @Nullable String
getBankHolidayName
(String filename) static @Nullable String
static @Nullable String
getBankHolidayName
(ZonedDateTime day, String filename) static long
getDaysUntil
(String searchedHoliday) static long
getDaysUntil
(String searchedHoliday, String filename) static long
getDaysUntil
(ZonedDateTime day, String searchedHoliday) static long
getDaysUntil
(ZonedDateTime day, String searchedHoliday, String filename) static @Nullable String
getHolidayDescription
(@Nullable String holiday) static @Nullable String
static @Nullable String
getNextBankHoliday
(int offset) static @Nullable String
getNextBankHoliday
(int offset, String filename) static @Nullable String
getNextBankHoliday
(String filename) static @Nullable String
static @Nullable String
getNextBankHoliday
(ZonedDateTime day, String filename) static boolean
static boolean
isBankHoliday
(int offset) static boolean
isBankHoliday
(int offset, String filename) static boolean
isBankHoliday
(String filename) static boolean
static boolean
isBankHoliday
(ZonedDateTime day, String filename) static boolean
isInDayset
(String daysetName) static boolean
isInDayset
(String daysetName, int offset) static boolean
isInDayset
(String daysetName, ZonedDateTime day) static boolean
static boolean
isWeekend
(int offset) static boolean
isWeekend
(ZonedDateTime day)
-
Constructor Details
-
Ephemeris
public Ephemeris()
-
-
Method Details
-
isWeekend
public static boolean isWeekend() -
isWeekend
public static boolean isWeekend(int offset) -
isWeekend
-
isInDayset
-
isInDayset
-
isInDayset
-
isBankHoliday
public static boolean isBankHoliday() -
isBankHoliday
public static boolean isBankHoliday(int offset) -
isBankHoliday
-
isBankHoliday
-
isBankHoliday
-
isBankHoliday
-
getBankHolidayName
-
getBankHolidayName
-
getBankHolidayName
-
getBankHolidayName
-
getBankHolidayName
-
getBankHolidayName
-
getNextBankHoliday
-
getNextBankHoliday
-
getNextBankHoliday
-
getNextBankHoliday
-
getNextBankHoliday
-
getNextBankHoliday
-
getHolidayDescription
-
getDaysUntil
-
getDaysUntil
-
getDaysUntil
-
getDaysUntil
-