Versions Compared

Key

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

Build a valid Clock epoch date/time structure.

Files

clk.h/clk.c

Prototype

Arguments

p_date_time

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

...

Time zone offset (in seconds, ± from UTC) [-43200 to 43200].

Returned Values

DEF_OK

, if date/time structure successfully returned.

DEF_FAIL

, otherwise.

Required Configuration

None.

Notes / Warnings

Date/time structure (p_date_time) must be representable in Clock timestamp. Thus date to convert must be greater than or equal to CLK_EPOCH_YR_START and less than CLK_EPOCH_YR_END.

Example Usage