UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

9 lines 558 B
import type { Temporal } from "../types.js"; /** * Checks whether the first datetime is before the second one. * @param dateTime datetime object * @param dateTimeToCompare datetime object to compare with * @returns whether the first datetime is before the second one */ export declare function isBefore<DateTime extends Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate | Temporal.PlainTime | Temporal.PlainDateTime | Temporal.PlainYearMonth>(dateTime: DateTime, dateTimeToCompare: DateTime): boolean; //# sourceMappingURL=isBefore.d.ts.map