Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get current Clock timestamp as a date/time structure.

Files

clk.h/clk.c

Prototype

Arguments

p_date_time

Pointer to variable that will receive the date/time structure.

Returned Values

DEF_OK, if date/time structure is valid.

DEF_FAIL, otherwise.

Required Configuration

None.

Notes / Warnings

Clock time zone offset is used to calculate the local date/time (p_date_time) returned. Thus local date/time is returned as UTC+TZ, where Clock time zone offset (TZ) is returned as local time zone offset (p_date_time->TZ_sec).

Example Usage