Typedefs | |
typedef struct axutil_date_time | axutil_date_time_t |
Enumerations | |
enum | axutil_date_time_comp_result_t { AXIS2_DATE_TIME_COMP_RES_FAILURE = -1, AXIS2_DATE_TIME_COMP_RES_UNKNOWN, AXIS2_DATE_TIME_COMP_RES_EXPIRED, AXIS2_DATE_TIME_COMP_RES_EQUAL, AXIS2_DATE_TIME_COMP_RES_NOT_EXPIRED } |
Functions | |
AXIS2_EXTERN axutil_date_time_t * | axutil_date_time_create (const axutil_env_t *env) |
AXIS2_EXTERN axutil_date_time_t * | axutil_date_time_create_with_offset (const axutil_env_t *env, int offset) |
AXIS2_EXTERN void | axutil_date_time_free (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_deserialize_time (axutil_date_time_t *date_time, const axutil_env_t *env, const axis2_char_t *time_str) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_deserialize_date (axutil_date_time_t *date_time, const axutil_env_t *env, const axis2_char_t *date_str) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_deserialize_date_time (axutil_date_time_t *date_time, const axutil_env_t *env, const axis2_char_t *date_time_str) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_set_date_time (axutil_date_time_t *date_time, const axutil_env_t *env, int year, int month, int date, int hour, int min, int second, int milliseconds) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_time (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_date (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_date_time (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_date_time_without_millisecond (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_year (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_month (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_date (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_hour (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_minute (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_second (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_msec (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axutil_date_time_comp_result_t | axutil_date_time_compare (axutil_date_time_t *date_time, const axutil_env_t *env, axutil_date_time_t *ref) |
AXIS2_EXTERN axutil_date_time_t * | axutil_date_time_utc_to_local (axutil_date_time_t *date_time, const axutil_env_t *env, axis2_bool_t is_positive, int hour, int min) |
AXIS2_EXTERN axutil_date_time_t * | axutil_date_time_local_to_utc (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_time_zone_hour (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN int | axutil_date_time_get_time_zone_minute (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_bool_t | axutil_date_time_is_time_zone_positive (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_set_time_zone (axutil_date_time_t *date_time, const axutil_env_t *env, axis2_bool_t is_positive, int hour, int min) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_deserialize_date_time_with_time_zone (axutil_date_time_t *date_time, const axutil_env_t *env, const axis2_char_t *date_time_str) |
AXIS2_EXTERN axis2_status_t | axutil_date_time_deserialize_time_with_time_zone (axutil_date_time_t *date_time, const axutil_env_t *env, const axis2_char_t *time_str) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_date_time_with_time_zone (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_char_t * | axutil_date_time_serialize_time_with_time_zone (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axis2_bool_t | axutil_date_time_is_utc (axutil_date_time_t *date_time, const axutil_env_t *env) |
AXIS2_EXTERN axutil_date_time_comp_result_t axutil_date_time_compare | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env, | |||
axutil_date_time_t * | ref | |||
) |
Compare the date and time of with the reference If the < this returns NOT_EXPIRED. If the > this returns EXPIRED. If the = this returns EQUAL.
date_time | the date time to be compared | |
env | pointer to environment struct. MUST NOT be NULL the reference date time |
AXIS2_EXTERN axutil_date_time_t* axutil_date_time_create | ( | const axutil_env_t * | env | ) |
Creates axutil_date_time struct with current date time
env | double pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_status_t axutil_date_time_deserialize_date | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env, | |||
const axis2_char_t * | date_str | |||
) |
store the date value from plain text.
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL | |
date | date as a string format YYYY-MM-DD |
AXIS2_EXTERN axis2_status_t axutil_date_time_deserialize_date_time | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env, | |||
const axis2_char_t * | date_time_str | |||
) |
store the date value from plain text.
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL | |
date_time | string format YYYY-MM-DDTHH:MM:SSZ |
AXIS2_EXTERN axis2_status_t axutil_date_time_deserialize_time | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env, | |||
const axis2_char_t * | time_str | |||
) |
store the time value from plain text.
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL | |
time | time as a string format HH:MM:TTZ |
AXIS2_EXTERN void axutil_date_time_free | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
free the axutil_date_time.
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_date | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the date of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_hour | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the hour of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_minute | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the minute of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_month | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the month of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_second | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the second of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN int axutil_date_time_get_year | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrieve the year of the date time
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_char_t* axutil_date_time_serialize_date | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrive the stored date as a string
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_char_t* axutil_date_time_serialize_date_time | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrive the stored date time as a string with millisecond precision
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_char_t* axutil_date_time_serialize_date_time_without_millisecond | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrive the stored date time as a string without millisecond
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_char_t* axutil_date_time_serialize_time | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env | |||
) |
retrive the stored time as a string
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL |
AXIS2_EXTERN axis2_status_t axutil_date_time_set_date_time | ( | axutil_date_time_t * | date_time, | |
const axutil_env_t * | env, | |||
int | year, | |||
int | month, | |||
int | date, | |||
int | hour, | |||
int | min, | |||
int | second, | |||
int | milliseconds | |||
) |
store the date value from set of values
date_time | represet the type object | |
env | pointer to environment struct. MUST NOT be NULL | |
year | Integer -1 can be used to ignore | |
month | Integer -1 can be used to ignore | |
date | Integer -1 can be used to ignore | |
hour | Integer -1 can be used to ignore | |
min | Integer -1 can be used to ignore | |
second | Integer -1 can be used to ignore |