| Evolution API Reference: libedataserver, utility library | ||||
|---|---|---|---|---|
Time-Related Utility FunctionsTime-Related Utility Functions — Utility functions for time structure manipulation. |
enum ETimeParseStatus; ETimeParseStatus e_time_parse_date_and_time (const char *value, struct tm *result); ETimeParseStatus e_time_parse_date (const char *value, struct tm *result); ETimeParseStatus e_time_parse_date_and_time_ex (const char *value, struct tm *result, gboolean *two_digit_year); ETimeParseStatus e_time_parse_date_ex (const char *value, struct tm *result, gboolean *two_digit_year); ETimeParseStatus e_time_parse_time (const char *value, struct tm *result); void e_time_format_date_and_time (struct tm *date_tm, gboolean use_24_hour_format, gboolean show_midnight, gboolean show_zero_seconds, char *buffer, int buffer_size); void e_time_format_time (struct tm *date_tm, gboolean use_24_hour_format, gboolean show_zero_seconds, char *buffer, int buffer_size); time_t e_mktime_utc (struct tm *tm); void e_localtime_with_offset (time_t tt, struct tm *tm, int *offset); char* e_time_get_d_fmt_with_4digit_year (void);
typedef enum {
E_TIME_PARSE_OK,
E_TIME_PARSE_NONE,
E_TIME_PARSE_INVALID
} ETimeParseStatus;
ETimeParseStatus e_time_parse_date_and_time (const char *value, struct tm *result);
|
|
|
|
Returns : |
ETimeParseStatus e_time_parse_date (const char *value, struct tm *result);
|
|
|
|
Returns : |
ETimeParseStatus e_time_parse_date_and_time_ex (const char *value, struct tm *result, gboolean *two_digit_year);
|
|
|
|
|
|
Returns : |
ETimeParseStatus e_time_parse_date_ex (const char *value, struct tm *result, gboolean *two_digit_year);
|
|
|
|
|
|
Returns : |
ETimeParseStatus e_time_parse_time (const char *value, struct tm *result);
|
|
|
|
Returns : |
void e_time_format_date_and_time (struct tm *date_tm,
gboolean use_24_hour_format,
gboolean show_midnight,
gboolean show_zero_seconds,
char *buffer,
int buffer_size);
|
|
|
|
|
|
|
|
|
|
|
void e_time_format_time (struct tm *date_tm,
gboolean use_24_hour_format,
gboolean show_zero_seconds,
char *buffer,
int buffer_size);
|
|
|
|
|
|
|
|
|
void e_localtime_with_offset (time_t tt,
struct tm *tm,
int *offset);
|
|
|
|
|