UNPKG

lavva.exalushome

Version:

Library implementing communication and abstraction layers for ExalusHome system

14 lines (13 loc) 644 B
/** * Utilities to test whether a given date falls within the current * hour, day, week, month or year (local time – domyślnie strefa serwera, * np. Europe/Warsaw gdy proces tam działa). */ export declare function isThisHour(date: Date, now?: Date): boolean; export declare function isThisDay(date: Date, now?: Date): boolean; /** * @param weekStartsOn 0 = niedziela, 1 = poniedziałek (domyślnie). */ export declare function isThisWeek(date: Date, now?: Date, weekStartsOn?: number): boolean; export declare function isThisMonth(date: Date, now?: Date): boolean; export declare function isThisYear(date: Date, now?: Date): boolean;