subtractZonedBusinessDays
Signature
Section titled “Signature”subtractZonedBusinessDays(value: string, amount: number): stringReturn a zoned ISO 8601 datetime string with amount business days subtracted from value.
- Uses a fixed Monday–Friday business week (no locale awareness). Saturday–Sunday is CLDR’s world-default weekend; ISO 8601 defines no weekend.
- Has no calendar parameter, so no other weekend and no holidays. It is not the zoned form of the plain
subtractBusinessDays, which takes aBusinessCalendar. - Saturday and Sunday are skipped during the count.
- Preserves the original time component through the operation.
- Returns "" on invalid input.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | ISO 8601 zoned datetime string |
amount | number | number of business days to subtract |
Returns
Section titled “Returns”Zoned ISO 8601 datetime string after subtracting business days, or "" on invalid input
Examples
Section titled “Examples”import { subtractZonedBusinessDays } from "@northguild/gmt/zoned/calculate";
subtractZonedBusinessDays("2024-03-18T14:30:00+02:00[Africa/Johannesburg]", 1) // "2024-03-15T14:30:00+02:00[Africa/Johannesburg]"Source
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.