espruino / EspruinoDocs

See http://espruino.com for the complete Espruino Documentation - many links in this repository will not work
http://www.espruino.com/
Other
260 stars 284 forks source link

Use `locale` in clock tutorial #736

Closed atjn closed 2 months ago

atjn commented 2 months ago

This rewrites the clock face tutorial to use the locale module instead of writing its own basic clock generator.

The new code also uses meridians correctly, which implements solution 4 in https://github.com/espruino/BangleApps/issues/3534

gfwilliams commented 2 months ago

Thanks!

gfwilliams commented 2 months ago

If you see any other stuff this (updating tutorials to suggest the newer/better way of doing things) it'd be great if you could do PRs, or even just bring it to my attention!

atjn commented 2 months ago

Sure, I will keep that in mind :)