@@ -4,12 +4,12 @@ Console.log("---")
4
4
Console .log ("Intl.DateTimeFormat" )
5
5
6
6
Intl .DateTimeFormat .supportedLocalesOf (["en-US" , "en-GB" ])-> ignore
7
- Intl .DateTimeFormat .supportedLocalesOfWithOptions (
7
+ Intl .DateTimeFormat .supportedLocalesOf (
8
8
["en-US" , "en-GB" ],
9
- {localeMatcher : #lookup },
9
+ ~ options = {localeMatcher : #lookup },
10
10
)-> ignore
11
11
12
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {dateStyle : #full , timeStyle : #full })
12
+ let formatter = Intl .DateTimeFormat .make (~ options = {dateStyle : #full , timeStyle : #full })
13
13
14
14
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
15
15
@@ -35,23 +35,23 @@ let options: Intl.DateTimeFormat.options = {
35
35
fractionalSecondDigits : # 3 ,
36
36
timeZoneName : #longGeneric ,
37
37
}
38
- let formatter = Intl .DateTimeFormat .makeWithOptions ( options )
38
+ let formatter = Intl .DateTimeFormat .make (~ options )
39
39
40
40
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
41
41
42
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {... options , timeZoneName : #long })
42
+ let formatter = Intl .DateTimeFormat .make (~ options = {... options , timeZoneName : #long })
43
43
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
44
44
45
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {... options , timeZoneName : #longOffset })
45
+ let formatter = Intl .DateTimeFormat .make (~ options = {... options , timeZoneName : #longOffset })
46
46
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
47
47
48
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {... options , timeZoneName : #short })
48
+ let formatter = Intl .DateTimeFormat .make (~ options = {... options , timeZoneName : #short })
49
49
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
50
50
51
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {... options , timeZoneName : #shortGeneric })
51
+ let formatter = Intl .DateTimeFormat .make (~ options = {... options , timeZoneName : #shortGeneric })
52
52
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
53
53
54
- let formatter = Intl .DateTimeFormat .makeWithOptions ( {... options , timeZoneName : #shortOffset })
54
+ let formatter = Intl .DateTimeFormat .make (~ options = {... options , timeZoneName : #shortOffset })
55
55
Console .log (formatter -> Intl .DateTimeFormat .format (Date .fromTime (Date .now ())))
56
56
57
57
let resolvedOptions = Intl .DateTimeFormat .make ()-> Intl .DateTimeFormat .resolvedOptions
0 commit comments