I just spotted your neat hack of require('locale').dow({getDay:()=>i}) that's a good solution for now.
require('locale').dow({getDay:()=>i})
But yes, we could definitely extend it - the only issue is it needs extending in firmware and the locale app
locale
@Gordon 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.
I just spotted your neat hack of
require('locale').dow({getDay:()=>i})
that's a good solution for now.But yes, we could definitely extend it - the only issue is it needs extending in firmware and the
locale
app