You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a function that formats a week day (numbered from 0—Sunday to 6—Saturday) according to the *locale* and *format*.
1200
+
-*locale*: any valid [BCP 47 language tag](https://tools.ietf.org/html/bcp47); defaults to "en-US". Use navigator.language to respect the browser’s setting.
1201
+
-*format*: any valid [weekday format](https://tc39.es/ecma402/#datetimeformat-objects), *i.e.* one of "narrow", "short", "long"; defaults to "short".
Plot.formatWeekday(navigator.language, "long") // depends on the browser’s settings
1213
+
```
1214
+
1215
+
This function is periodic: day -1 is Saturday, and day 8 is Sunday.
1195
1216
1196
1217
#### Plot.formatMonth(*locale*, *format*)
1197
1218
1198
-
…
1219
+
Returns a function that formats a month (numbered from 0—January to 11—December) according to the *locale* and *format*.
1220
+
-*locale*: any valid [BCP 47 language tag](https://tools.ietf.org/html/bcp47); defaults to "en-US". Use navigator.language to respect the browser’s setting.
1221
+
-*format*: any valid [month format](https://tc39.es/ecma402/#datetimeformat-objects), *i.e.* one of "2-digit", "numeric", "narrow", "short", "long"; defaults to "short".
0 commit comments