TIM SDK
TIM API C
|
|
Time-Date value.
Object type timedate.
Data Structures | |
struct | ta_s_timedate |
Time-date. More... | |
Typedefs | |
typedef struct ta_s_timedate | ta_s_timedate_t |
Time-date. | |
Functions | |
ta_e_result_code_t | ta_timedate_get_values (ta_object_t timedate, ta_s_timedate_t *values) |
Get values of time-date in struct. More... | |
ta_e_result_code_t | ta_timedate_create (ta_object_t *timedate, const ta_s_timedate_t *values) |
Create time date representing. More... | |
ta_e_result_code_t ta_timedate_create | ( | ta_object_t * | timedate, |
const ta_s_timedate_t * | values | ||
) |
Create time date representing.
Caller retains a reference to the created timedate. Different users can individually retain the timedate instance themselves by calling ta_object_retain. Each call to ta_object_retain and ta_timedate_create has to be matched with a call to ta_object_release. The timedate instance is destroyed once nobody retains the timedate instance anymore.
[out] | timedate | Pointer to variable to write created object instance to. Created object instance is retained. |
[in] | values | Pointers to struct with time and date values. Memory is not stored by the object instance and can be released after the call returns. |
ta_c_rc_ok | Object instance has been created and written to timedate. |
ta_c_rc_invalid_argument | timedate is null-pointer. |
ta_c_rc_invalid_argument | values is null-pointer. |
ta_c_rc_out_of_memory | Failed allocating memory. |
ta_e_result_code_t ta_timedate_get_values | ( | ta_object_t | timedate, |
ta_s_timedate_t * | values | ||
) |
Get values of time-date in struct.
Depending on the origin of the time-date not all values are used.
[in] | timedate | Object instance of type timedate. |
[out] | values | Pointer to variable to write values to. |
ta_c_rc_ok | Object instance written to values. |
ta_c_rc_invalid_argument | timedate is ta_object_invalid. |
ta_c_rc_invalid_argument | timedate is not of type timedate. |
ta_c_rc_invalid_argument | values is null-pointer. |