Skip to main content
This release is 2 versions behind 0.9.3 — the latest version of @dnl-fm/zeit-ts. Jump to latest

Built and signed on GitHub Actions

Helps syncing/reading user dates in your database

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.9.1)
c
DatabaseZeit

Represents a Zeit (time) object in the database timezone (UTC).

T
v
Timezone

Type representing all valid IANA timezone strings. This type is inferred from the TimezoneSchema and provides type safety when working with timezone strings in TypeScript.

v
TimezoneSchema

A Zod schema for validating time zone strings. It ensures that only valid time zones from the Timezone object are accepted. This schema is used for runtime validation of timezone values.

c
Zeit

Represents a Zeit (time) object with timezone awareness. This class serves as a factory for creating UserZeit and DatabaseZeit instances.

T
ZeitInterval

Defines the supported interval types for Zeit cycles. Used to specify the frequency of recurring periods like subscription or billing cycles.

T
ZeitPeriod

Represents a time period with start and end dates. Used for defining subscription cycles, billing periods, or any other time-bound intervals.

T
ZeitSchema

Represents a valid ISO 8601 datetime string. This type is inferred from the Zod schema that validates datetime strings.