Home Reference Source
public class | source

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:

NameTypeAttributeDescription
locale Locale
  • nullable: false

the new locale, not null

Return:

*

a formatter based on this formatter with the requested locale, not null