effect-io-ai

Package: effect
Module: DateTime

DateTime.formatLocal

Format a DateTime as a string using the DateTimeFormat API.

It will use the system’s local time zone & locale.

Signature

declare const formatLocal: { (options?: (Intl.DateTimeFormatOptions & { readonly locale?: Intl.LocalesArgument; }) | undefined): (self: DateTime) => string; (self: DateTime, options?: (Intl.DateTimeFormatOptions & { readonly locale?: Intl.LocalesArgument; }) | undefined): string; }

Source

Since v3.6.0