import LocaleDateTimeFormatter from '@js-joda/root/packages/locale/src/format/LocaleDateTimeFormatter.js'
LocaleDateTimeFormatter
Extends:
@js-joda/core~DateTimeFormatter → LocaleDateTimeFormatter
Method Summary
Public Methods | ||
public |
withLocale(locale: Locale): * Returns a copy of this formatter with a new locale. |
Public Methods
public withLocale(locale: Locale): * source
Returns a copy of this formatter with a new locale.
This is used to lookup any part of the formatter needing specific localization, such as the text or localized pattern.
This instance is immutable and unaffected by this method call.
Params:
Name | Type | Attribute | Description |
locale | Locale |
|
the new locale, not null |
Return:
* | a formatter based on this formatter with the requested locale, not null |