Statements (18)
Predicate | Object |
---|---|
gptkbp:instanceOf |
gptkb:JavaScript_internationalization_API
|
gptkbp:availableOn |
modern web browsers
|
gptkbp:builtBy |
gptkb:Intl.RelativeTimeFormat
|
gptkbp:category |
internationalization
date and time formatting |
gptkbp:definedIn |
gptkb:ECMA-402
|
gptkbp:example |
new Intl.RelativeTimeFormat('en', { numeric: 'auto' }).format(-1, 'day') // 'yesterday'
|
https://www.w3.org/2000/01/rdf-schema#label |
RelativeTimeFormat
|
gptkbp:introducedIn |
gptkb:ECMAScript_2020
|
gptkbp:method |
format
formatToParts |
gptkbp:partOf |
gptkb:ECMAScript_Internationalization_API
|
gptkbp:property |
resolvedOptions
|
gptkbp:supportsLocales |
yes
|
gptkbp:supportsOptions |
yes
|
gptkbp:usedFor |
formatting relative time strings
|
gptkbp:bfsParent |
gptkb:ECMA-402
|
gptkbp:bfsLayer |
6
|