Files
MuditaOS/module-utils/time
kkleczkowski 9811b7a044 Egd 2404 db modem (#137)
* [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.
2020-01-21 10:49:18 +01:00
..
2019-10-03 10:16:05 +02:00
2020-01-21 10:49:18 +01:00
2020-01-21 10:49:18 +01:00

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