Function anj_time_real_now

Function Documentation

anj_time_real_t anj_time_real_now(void)

Returns the current real (calendar) time point.

The result is referenced to the Unix epoch (00:00:00 UTC on 1970-01-01)) and may be affected by wall-clock adjustments (NTP corrections or manual edits).

See also

anj_time_real_t

Note

In Anjay Lite, the real-time clock is used for:

  • the LwM2M Send Operation timestamping, and

  • X.509 certificate validity period checks. Integrations that do not use these features may return a constant value (e.g., zero) from this function, or map it to the monotonic clock.

Returns:

anj_time_real_t representing “now” on the real/calendar clock.