forked from nkronlage/JavaScripture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatetimeformat.jsdoc
More file actions
56 lines (46 loc) · 1.27 KB
/
datetimeformat.jsdoc
File metadata and controls
56 lines (46 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
DateTimeFormat : Object
----
DateTimeFormat([locales : Array<String>, [options : Object]]) : DateTimeFormat
Same as %%#new_DateTimeFormat|**new Intl.DateTimeFormat(locales, options)**%%.
----
new DateTimeFormat([locales : Array<String>, [options : { \
formatMatcher : String /* One of **'basic'** or **'best fit'**. */, \
hour12 : Boolean /* */, \
localeMatcher : String /* */, \
timeZone : String /* */, \
}]]) : DateTimeFormat
<example>
</example>
----
instance.format(date : Date) : String
<example>
</example>
----
prototype.resolvedOptions() : { \
calendar : String /* */, \
day : String /* */, \
era : String /* */, \
hour : String /* */, \
hour12 : Boolean /* */, \
locale : String /* */, \
minute : String /* */, \
month : String /* */, \
numberingSystem : String /* */, \
second : String /* */, \
timeZone : String /* */, \
timeZoneName : String /* */, \
weekday : String /* */, \
year : String /* */, \
}
<example>
var options = Intl.DateTimeFormat().resolvedOptions();
for (var property in options) {
console.log(property + ': ' + options[property]);
}
</example>
----
supportedLocalesOf(locales : Array<String>, [options : { \
localeMatcher : String /* One of **'basic'** or **'best fit'**. */ \
}]) : Array<String>
<example>
</example>