Kannel: Open Source WAP and SMS gateway
svn-r5336
|
Go to the source code of this file.
Macros | |
#define | MINUTE 60 |
#define | HOUR (60 * MINUTE) |
#define | DAY (24 * HOUR) |
Functions | |
Octstr * | date_format_http (unsigned long unixtime) |
long | date_convert_universal (struct universaltime *t) |
long | date_parse_http (Octstr *date) |
int | date_parse_iso (struct universaltime *ut, Octstr *os) |
Octstr * | date_create_iso (time_t unixtime) |
long | date_universal_now (void) |
Variables | |
static char const * | wkday [7] |
static char const * | monthname [12] |
static int | monthstart [12] |
#define DAY (24 * HOUR) |
Definition at line 87 of file date.c.
Referenced by date_convert_universal().
#define HOUR (60 * MINUTE) |
Definition at line 86 of file date.c.
Referenced by date_convert_universal(), and date_parse_iso().
#define MINUTE 60 |
Definition at line 85 of file date.c.
Referenced by date_convert_universal(), and date_parse_iso().
long date_convert_universal | ( | struct universaltime * | t | ) |
Definition at line 118 of file date.c.
References date(), universaltime::day, DAY, universaltime::hour, HOUR, universaltime::minute, MINUTE, universaltime::month, monthstart, universaltime::offset_sec, universaltime::second, and universaltime::year.
Referenced by at2_pdu_decode_deliver_sm(), date_parse_http(), handle_operation(), main(), soap_parse_mo(), and soap_read_date().
Octstr* date_create_iso | ( | time_t | unixtime | ) |
Definition at line 328 of file date.c.
References gw_gmtime(), and octstr_format().
Referenced by soap_mobitai_date_attribute(), and soap_mobitai_validity_date_attribute().
Octstr* date_format_http | ( | unsigned long | unixtime | ) |
Definition at line 89 of file date.c.
References gw_gmtime(), monthname, octstr_create, warning(), and wkday.
Referenced by add_x_wap_tod(), check_reversible(), http_send_reply(), soap_server(), and wsp_unpack_date_value().
long date_parse_http | ( | Octstr * | date | ) |
Definition at line 148 of file date.c.
References date(), date_convert_universal(), universaltime::day, error(), universaltime::hour, universaltime::minute, universaltime::month, monthname, octstr_copy, octstr_destroy(), octstr_get_char(), octstr_len(), octstr_parse_long(), octstr_search_char(), octstr_str_compare(), universaltime::offset_sec, universaltime::second, and universaltime::year.
Referenced by check_reversible(), and wsp_pack_date().
int date_parse_iso | ( | struct universaltime * | ut, |
Octstr * | os | ||
) |
Definition at line 230 of file date.c.
References universaltime::day, gw_isdigit(), universaltime::hour, HOUR, universaltime::minute, MINUTE, universaltime::month, octstr_get_cstr, octstr_len(), octstr_search_char(), universaltime::offset_sec, universaltime::second, and universaltime::year.
Referenced by main(), and soap_parse_mo().
long date_universal_now | ( | void | ) |
Definition at line 340 of file date.c.
Referenced by eq_create_event(), eq_round_trip_time(), send_enquire_link(), smasi_thread(), and smpp_emu_writer().
|
static |
Definition at line 72 of file date.c.
Referenced by date_format_http(), and date_parse_http().
|
static |
Definition at line 79 of file date.c.
Referenced by date_convert_universal().
|
static |
Definition at line 68 of file date.c.
Referenced by date_format_http().