UNPKG

gize

Version:

![npm](https://img.shields.io/npm/v/gize) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/elias-ela/gize/Build-Test) [![Coverage Status](https://coveralls.io/repos/github/elias-ela/gize/badge.svg?branch=main)](https://coveralls.io/

49 lines (48 loc) 2.92 kB
import { EthiopicDatetime } from '../../Datetime'; /** * @name isEqual * @category Common Helpers * @summary Are the given dates equal? * * @description * Are the given dates equal? * * * @param {Date} dateLeft - the first date to compare * @param {Date} dateRight - the second date to compare * @returns {Boolean} the dates are equal * @throws {TypeError} 2 arguments required * * @example * // Are ሰኞ ጥር 17 2013 03:12:23.000 and ሰኞ ጥር 17 2013 03:12:23.287 equal? * const res = isEqual( * new EthiopicDatetime(2013, 5, 17, 3, 12, 23, 0), * new EthiopicDatetime(2013, 5, 17, 3, 12, 23, 287) * ) * //=> false */ export declare function isEqual(dirtyDateLeft: EthiopicDatetime, dirtyDateRight: EthiopicDatetime): boolean; export declare function isAfter(dirtyDate: EthiopicDatetime, dirtyDateToCompare: EthiopicDatetime): boolean; export declare function isAfterOrEqual(dirtyDate: EthiopicDatetime, dirtyDateToCompare: EthiopicDatetime): boolean; export declare function isBefore(dirtyDate: EthiopicDatetime, dirtyDateToCompare: EthiopicDatetime): boolean; export declare function isBeforeOrEqual(dirtyDate: EthiopicDatetime, dirtyDateToCompare: EthiopicDatetime): boolean; export declare function isBetween(dirtyDateToCompare: EthiopicDatetime, dirtyDateLeft: EthiopicDatetime, dirtyDateRight: EthiopicDatetime): boolean; export declare function min(dirtyDates: EthiopicDatetime[]): EthiopicDatetime; export declare function max(dirtyDates: EthiopicDatetime[]): EthiopicDatetime; export declare function isYesterday(dirtyDate: EthiopicDatetime): boolean; export declare function isToday(dirtyDate: EthiopicDatetime): boolean; export declare function isTomorrow(dirtyDate: EthiopicDatetime): boolean; export declare function isPast(dirtyDate: EthiopicDatetime): boolean; export declare function isFuture(dirtyDate: EthiopicDatetime): boolean; export declare function isSameDay(dirtyDateLeft: EthiopicDatetime, dirtyDateRight: EthiopicDatetime): boolean; export declare function isSameYear(dirtyDateLeft: EthiopicDatetime, dirtyDateRight: EthiopicDatetime): boolean; export declare function isSameMonth(dirtyDateLeft: EthiopicDatetime, dirtyDateRight: EthiopicDatetime): boolean; export declare function isWeekday(dirtyDate: EthiopicDatetime): boolean; export declare function isWeekend(dirtyDate: EthiopicDatetime): boolean; export declare function isMonday(dirtyDate: EthiopicDatetime): boolean; export declare function isTuesday(dirtyDate: EthiopicDatetime): boolean; export declare function isWednesday(dirtyDate: EthiopicDatetime): boolean; export declare function isThursday(dirtyDate: EthiopicDatetime): boolean; export declare function isFriday(dirtyDate: EthiopicDatetime): boolean; export declare function isSaturday(dirtyDate: EthiopicDatetime): boolean; export declare function isSunday(dirtyDate: EthiopicDatetime): boolean;