Hyperlinkv0.8.0-beta.28

DateTime

DateTime.zoneMakeLocalconsteffect/DateTime.ts:1113
(): TimeZone.Named

Create 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
time zones
export const zoneMakeLocal: () => TimeZone.Named = Internal.zoneMakeLocal
Referenced by 2 symbols