Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
12
export
const
tz = (timeZone: string) => (value: Date | number | string) =>
13
TZDate.tz(timeZone, +
new
Date(value));
Callers
2
tests.ts
File · 0.90
tests.ts
File · 0.90
Calls
1
tz
Method · 0.45
Tested by
no test coverage detected