object RelativeTimeFormat
The [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
object is a constructor for objects that enable language-sensitive relative time formatting.
Part of [Intl object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) namespace and the [ECMAScript Internationalization API](https://www.ecma-international.org/publications/standards/Ecma-402.htm).
[Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
[Polyfills](https://github.com/tc39/proposal-intl-relative-time#polyfills).
- Source
- Intl.scala
- Alphabetic
- By Inheritance
- RelativeTimeFormat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- val ^: Any
- Annotations
- @JSGlobal("Intl.RelativeTimeFormat") @native()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def supportedLocalesOf(locales: Unit, options: RelativeTimeFormatOptions): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
- Annotations
- @inline()
- def supportedLocalesOf(locales: scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier], options: RelativeTimeFormatOptions): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
- Annotations
- @inline()
- def supportedLocalesOf(locales: scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
- Annotations
- @inline()
- def supportedLocalesOf(locales: UnicodeBCP47LocaleIdentifier, options: RelativeTimeFormatOptions): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
- Annotations
- @inline()
- def supportedLocalesOf(locales: UnicodeBCP47LocaleIdentifier): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
- Annotations
- @inline()
- def supportedLocalesOf(): scala.scalajs.js.Array[UnicodeBCP47LocaleIdentifier]
Returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
Returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated