...
Available only if CLK_CFG_NTP_EN
is DEF_ENABLED
in clk_cfg.h
(see section 3-1-1 Module Configuration).
Notes / Warnings
Date/time structure (p_date_time
) must be representable in NTP timestamp. Thus date to convert must be greater than or equal to CLK_NTP_EPOCH_YR_START
and less than CLK_NTP_EPOCH_YR_END
. Date/time should be set to local time with correct time zone offset (p_date_time->TZ_sec
). Clk_DateTimeToTS_NTP()
removes the time zone offset from the date/time to calculate and return an NTP timestamp at UTC+00.
...