planby
Version:
<div align="center" style="margin-bottom: 10px"> <a href="https://www.npmjs.com/package/planby"> <img src="https://i.postimg.cc/J0XMPHNQ/planby-logo.png" alt="Planby logo" /> </a> </div>
13 lines (12 loc) • 636 B
TypeScript
import { DateTime as DateRangeTime } from "./types";
declare type DateTime = number | string | Date;
export declare const getLiveStatus: (since: DateTime, till: DateTime) => boolean;
export declare const formatTime: (date: DateTime) => string;
export declare const roundToMinutes: (date: DateTime) => Date;
export declare const isYesterday: (since: DateTime, startDate: DateTime) => boolean;
export declare const isFutureTime: (date: DateTime) => boolean;
export declare const getTimeRangeDates: (startDate: DateRangeTime, endDate: DateRangeTime) => {
startDate: DateRangeTime;
endDate: DateRangeTime;
};
export {};