Page 1 of 1

localization of date/time/decimal

Posted: Wed Nov 23, 2016 3:09 pm
by roland_vs
There is some discussion to have sensors report values in SI units. However if an application is developed it is necessary to adapt the way time, date and the decimal point is represented.
Libraries like babel address these issues, it would be a great enhancement to micropython.

Your opinions and ideas?

Re: localization of date/time/decimal

Posted: Wed Nov 23, 2016 8:31 pm
by Khyrtsi
Data should be localized in UI. If you have a "dumb" sensornode then it should report values in machine readable format. If it has a user interface then it should localize data.

I consider mcu's more suitable for dumb sensor nodes, but I'm no expert on them.

Re: localization of date/time/decimal

Posted: Wed Nov 23, 2016 9:26 pm
by deshipu
Believe me, you don't want to write your own date/time handling library. It sounds like a trivial task, but in fact is an immensely complicated thing, with a lot of corner cases, and much more data needed than can fit into MicroPython boards.