Possible applications use for Bangle.js clocks with date.
Like to continue this discussion , because there will be requests for something like
Looking at the MDN docs there's a standard for Intl (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) that I reckon could be implemented as a JS library reasonably easily?
named in https://github.com/espruino/Espruino/issues/1703
What about extend "DateFormatter" to pass names for your local days and month so it’s not blowing up the module.
eg days and mons as long and/or short format
days: "SundayMondayTuesdayWednesday...", dayLen: 9 and equally for mons: "JanuaryFeburary_...", monLen: 9)
To make a clock app very flexible, same code for all locales. it could be injected via app customized page eg Route Viewer
What do you think about this idea?
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Possible applications use for Bangle.js clocks with date.
Like to continue this discussion , because there will be requests for something like
named in https://github.com/espruino/Espruino/issues/1703
What about extend "DateFormatter" to pass names for your local days and month so it’s not blowing up the module.
eg days and mons as long and/or short format
days: "SundayMondayTuesdayWednesday...", dayLen: 9 and equally for mons: "JanuaryFeburary_...", monLen: 9)
To make a clock app very flexible, same code for all locales.
it could be injected via app customized page eg Route Viewer
What do you think about this idea?