localization of date/time/decimal

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
roland_vs
Posts: 89
Joined: Tue Dec 08, 2015 8:28 pm
Location: Netherlands
Contact:

localization of date/time/decimal

Post by roland_vs » Wed Nov 23, 2016 3:09 pm

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?

Khyrtsi
Posts: 5
Joined: Sat Nov 12, 2016 7:28 am
Location: Finland
Contact:

Re: localization of date/time/decimal

Post by Khyrtsi » Wed Nov 23, 2016 8:31 pm

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.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: localization of date/time/decimal

Post by deshipu » Wed Nov 23, 2016 9:26 pm

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.

Post Reply