isPast
Signature
Section titled “Signature”isPast(value: string): booleanReturn true when value is strictly before today, per the system clock and system timeZone.
value === todayreturns false — “past” means strictly before, not on-or-before.- Compares against today, so this depends on the system clock and system timeZone. A caller needing determinism should use
isZonedPastwith an explicit timeZone, or compare against an explicit reference withisBeforeDate. - Returns false if
valueis invalid or the system timeZone is unavailable.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO PlainDate string |
Returns
Section titled “Returns”true if value is before today, false on invalid input
Examples
Section titled “Examples”import { isPast } from "@northguild/gmt/plain/compare";
isPast("2024-03-14") // true, if today is 2024-03-15Source
Section titled “Source”Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.