@burglekitt/gmt
Version:
Temporal-based date and time utilities with timezone support and polyfill integration
10 lines (9 loc) • 430 B
TypeScript
import { Temporal } from "@js-temporal/polyfill";
import type { Disambiguation, Offset } from "../../types/index.js";
export declare function startOrEndOfUnix(value: number, unit: Temporal.DateUnit | Temporal.TimeUnit, options: {
epochUnit?: "seconds" | "milliseconds";
timeZone?: string;
weekStartsOn?: "monday" | "sunday";
disambiguation?: Disambiguation;
offset?: Offset;
}, isEnd: boolean): number | null;