...
Clk_TS_UnixToTS()
Anchor
Files
...
clk.h/clk.c
...
Prototype
...
class | Code_Listing |
---|
...
...
Arguments
...
...
p_ts_sec
Pointer to variable that will receive the Clock timestamp:
...
In seconds UTC+00, if no errors;
CLK_TS_SEC_NONE
, otherwise. 1055491 Anchor
ts_unix_sec
Unix timestamp value to convert (in seconds, UTC+00).
...
Returned Values
...
...
DEF_OK
, if timestamp successfully converted.
...
DEF_FAIL
, otherwise.
...
Required Configuration
Anchor
CLK_CFG_UNIX_EN
is DEF_ENABLED
in clk_cfg.h
(see section 3-1-1).Notes / Warnings
Anchor
Clk_TS_UnixToTS()
.anchorOnly years supported by Clock and Unix can be converted, thus the timestamp date must be greater than or equal to CLK_EPOCH_YR_START
and less than CLK_UNIX_EPOCH_YR_END
.anchor
Example Usage
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...