|
Tizen Native API
5.5
|
Date Interval represents a date interval.
#include <utils_i18n.h>
The module represents a date interval.
Functions | |
| int | i18n_date_interval_create (i18n_udate from_date, i18n_udate to_date, i18n_date_interval_h *date_interval) |
| Creates a date interval object. | |
| int | i18n_date_interval_destroy (i18n_date_interval_h date_interval) |
| Destroys the date interval object. | |
| int | i18n_date_interval_clone (i18n_date_interval_h date_interval, i18n_date_interval_h *clone) |
| Clones the date interval object. | |
| int | i18n_date_interval_get_from_date (i18n_date_interval_h date_interval, i18n_udate *from_date) |
| Gets the 'from date' from a given date interval object. | |
| int | i18n_date_interval_get_to_date (i18n_date_interval_h date_interval, i18n_udate *to_date) |
| Gets the 'to date' from a given date interval object. | |
| int | i18n_date_interval_equals (i18n_date_interval_h date_interval_1, i18n_date_interval_h date_interval_2, i18n_ubool *equals) |
| Compares two date interval objects. | |
Typedefs | |
| typedef void * | i18n_date_interval_h |
| An i18n_date_interval_h handle. | |
| typedef void* i18n_date_interval_h |
An i18n_date_interval_h handle.
Use i18n_date_interval_* functions to operate on i18n_date_interval_h objects.
| int i18n_date_interval_clone | ( | i18n_date_interval_h | date_interval, |
| i18n_date_interval_h * | clone | ||
| ) |
Clones the date interval object.
| [in] | date_interval | The date interval to be cloned |
| [out] | clone | The clone of the given date_interval object |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |
| I18N_ERROR_OUT_OF_MEMORY | Out of memory |
| int i18n_date_interval_create | ( | i18n_udate | from_date, |
| i18n_udate | to_date, | ||
| i18n_date_interval_h * | date_interval | ||
| ) |
Creates a date interval object.
| [in] | from_date | The start date of the date interval |
| [in] | to_date | The end date of the date interval |
| [out] | date_interval | The created date interval object |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |
| I18N_ERROR_OUT_OF_MEMORY | Out of memory |
| int i18n_date_interval_destroy | ( | i18n_date_interval_h | date_interval | ) |
Destroys the date interval object.
| [in] | date_interval | The date interval to be destroyed |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |
| int i18n_date_interval_equals | ( | i18n_date_interval_h | date_interval_1, |
| i18n_date_interval_h | date_interval_2, | ||
| i18n_ubool * | equals | ||
| ) |
Compares two date interval objects.
| [in] | date_interval_1 | The first date interval object |
| [in] | date_interval_2 | The second date interval object |
| [out] | equals | A flag set to true if given objects are equal, or false otherwise. |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |
| int i18n_date_interval_get_from_date | ( | i18n_date_interval_h | date_interval, |
| i18n_udate * | from_date | ||
| ) |
Gets the 'from date' from a given date interval object.
| [in] | date_interval | The date interval object |
| [out] | from_date | The 'from date' value |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |
| int i18n_date_interval_get_to_date | ( | i18n_date_interval_h | date_interval, |
| i18n_udate * | to_date | ||
| ) |
Gets the 'to date' from a given date interval object.
| [in] | date_interval | The date interval object |
| [out] | to_date | The 'to date' value |
0 on success, otherwise a negative error value | I18N_ERROR_NONE | Successful |
| I18N_ERROR_INVALID_PARAMETER | Invalid function parameter |