Private UTC timestamp conversion helpers for the logger_default adapter.
More...
Go to the source code of this file.
This header exposes private timestamp-related types and helpers used by the logger_default adapter implementation.
Definition in file logger_default_utc_timestamp.h.
◆ logger_default_utc_timestamp_t
This structure stores a UTC+0 civil timestamp decomposed into calendar and clock fields. It is produced internally from an osal_time_t epoch-time value for log formatting purposes.
◆ logger_default_epoch_time_to_date()
This private helper converts time->epoch_seconds into a UTC+0 civil timestamp stored in *out.
- Parameters
-
| [out] | out | Receives the converted UTC timestamp. Must not be NULL. |
| [in] | time | Epoch-time value to convert. Must not be NULL. |
- Return values
-
| true | Conversion succeeded and *out was populated. |
| false | One or more arguments are invalid. |
This helper interprets time->epoch_seconds as a UTC+0 Unix epoch-time value and converts it into calendar and clock fields stored in *out.
- Parameters
-
| [out] | out | Receives the converted UTC timestamp. Must not be NULL. |
| [in] | time | Epoch-time value to convert. Must not be NULL. |
- Return values
-
| true | Conversion succeeded and *out was populated. |
| false | One or more arguments are invalid. |
Definition at line 102 of file logger_default_utc_timestamp.c.