MCPcopy
hub / github.com/date-fns/date-fns / tz

Function tz

pkgs/tz/src/tz/index.ts:12–13  ·  view source on GitHub ↗
(timeZone: string)

Source from the content-addressed store, hash-verified

10 * @returns Function that creates a new `TZDate` instance in the time zone
11 */
12export const tz = (timeZone: string) => (value: Date | number | string) =>
13 TZDate.tz(timeZone, +new Date(value));

Callers 2

tests.tsFile · 0.90
tests.tsFile · 0.90

Calls 1

tzMethod · 0.45

Tested by

no test coverage detected