(): TimeZone.NamedCreate a named time zone from the system's local time zone.
Details
This uses the system's configured time zone, which may vary depending on the runtime environment.
Example (Creating local time zones)
import { DateTime } from "effect"
const localZone = DateTime.zoneMakeLocal()
console.log(DateTime.zoneToString(localZone)) // Output depends on system time zonetime zones
Source effect/DateTime.ts:11131 lines
export const const zoneMakeLocal: () => TimeZone.NamedCreate a named time zone from the system's local time zone.
Details
This uses the system's configured time zone, which may vary depending
on the runtime environment.
Example (Creating local time zones)
import { DateTime } from "effect"
const localZone = DateTime.zoneMakeLocal()
console.log(DateTime.zoneToString(localZone)) // Output depends on system time zone
zoneMakeLocal: () => TimeZone.interface TimeZone.NamedNamed IANA time zone.
Details
The id field contains the resolved time zone identifier, such as
"Europe/London" or "America/New_York".
Named = import InternalInternal.const zoneMakeLocal: () => TimeZone.NamedzoneMakeLocalReferenced by 2 symbols