mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-29 11:25:27 -04:00
* [EGD-2404] Handling incoming SMS. * [EGD-2404-db-modem] WiP onf db handling. * [EGD-2404-db-modem] service-db notification + SmsDB::Add. * WiP handling service-db notification in service-cellular. * WiP on cellular<->db. * Fix in usc2, handlig incoming message. * Code cleanup pt 1. * Improvements in service-csllular. * Fixed compilation error on target, small cleanup. * Small claenup. * Fixes after rebase. * Fixed incoming sms date parsing on target. * Fix after rebase. * PR suggestions added. * dynamic_cast + nullptr check.
Time conversion utility
Why?
- There is no locale except C-Locale available in stdlib nano and we need time conversions.
- stdlibnano doesn't provide a way to sustitute C-Locale (it's static)
How?
There is C-Locale builtin, therefore to convert time when it's possible it's used.
When it's not -> specifiers are substituted with our locale (i18 map)
+--------+ +--------+
| Time | <=> | Locale |
+--------+ +--------+
*
|
+-----------+
| SysTime |
+-----------+
Locale - ( utils::time::Locale) class for i18n Time internationalization management
Time - generall class for Time transformations
SysTime - class for most of possible usecases, initialized with system clock, can return time string in reference to past
For more see headers