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
a month ago (0.9.1)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

method DatabaseZeit.prototype.toUser
DatabaseZeit.prototype.toUser(): UserZeit

Converts this DatabaseZeit to a UserZeit in the user's timezone.

Return Type

A new UserZeit instance.

Throws

Error

If the resulting date is invalid.

Add Package

deno add jsr:@dnl-fm/zeit-ts

Import symbol

import { DatabaseZeit } from "@dnl-fm/zeit-ts";

---- OR ----

Import directly with a jsr specifier

import { DatabaseZeit } from "jsr:@dnl-fm/zeit-ts";

Add Package

npx jsr add @dnl-fm/zeit-ts

Import symbol

import { DatabaseZeit } from "@dnl-fm/zeit-ts";

Add Package

yarn dlx jsr add @dnl-fm/zeit-ts

Import symbol

import { DatabaseZeit } from "@dnl-fm/zeit-ts";

Add Package

pnpm dlx jsr add @dnl-fm/zeit-ts

Import symbol

import { DatabaseZeit } from "@dnl-fm/zeit-ts";

Add Package

bunx jsr add @dnl-fm/zeit-ts

Import symbol

import { DatabaseZeit } from "@dnl-fm/zeit-ts";