Go to the source code of this file.
Functions | |
tm * | ast_localtime (const time_t *timep, struct tm *p_tm, const char *zone) |
time_t | ast_mktime (struct tm *const tmp, const char *zone) |
Definition in file localtime.h.
struct tm* ast_localtime | ( | const time_t * | timep, | |
struct tm * | p_tm, | |||
const char * | zone | |||
) |
Definition at line 1146 of file localtime.c.
References ast_tzset(), and localsub().
Referenced by acf_strftime(), action_corestatus(), append_date(), ast_check_timing(), ast_log(), ast_say_date_da(), ast_say_date_de(), ast_say_date_en(), ast_say_date_es(), ast_say_date_fr(), ast_say_date_gr(), ast_say_date_he(), ast_say_date_ka(), ast_say_date_nl(), ast_say_date_pt(), ast_say_date_with_format_da(), ast_say_date_with_format_de(), ast_say_date_with_format_en(), ast_say_date_with_format_es(), ast_say_date_with_format_fr(), ast_say_date_with_format_gr(), ast_say_date_with_format_he(), ast_say_date_with_format_it(), ast_say_date_with_format_nl(), ast_say_date_with_format_pl(), ast_say_date_with_format_pt(), ast_say_date_with_format_zh(), ast_say_datetime_de(), ast_say_datetime_en(), ast_say_datetime_fr(), ast_say_datetime_from_now_en(), ast_say_datetime_from_now_fr(), ast_say_datetime_from_now_he(), ast_say_datetime_from_now_ka(), ast_say_datetime_from_now_pt(), ast_say_datetime_gr(), ast_say_datetime_he(), ast_say_datetime_ka(), ast_say_datetime_nl(), ast_say_datetime_pt(), ast_say_datetime_pt_BR(), ast_say_datetime_zh(), ast_say_time_de(), ast_say_time_en(), ast_say_time_es(), ast_say_time_fr(), ast_say_time_gr(), ast_say_time_he(), ast_say_time_ka(), ast_say_time_nl(), ast_say_time_pt(), ast_say_time_pt_BR(), ast_say_time_zh(), ast_verbose(), build_query(), build_radius_record(), callerid_genmsg(), cdr_get_tv(), cli_prompt(), get_date(), handle_show_settings(), iax2_datetime(), main(), make_email_file(), manager_log(), pgsql_log(), phone_call(), play_message_datetime(), prep_email_sub_vars(), rpt_localtime(), say_date_generic(), sip_show_registry(), sqlite_log(), transmit_notify_request_with_callerid(), vmu_tm(), and write_metadata().
01147 { 01148 const struct state *sp = ast_tzset(zone); 01149 memset(tmp, 0, sizeof(*tmp)); 01150 return sp ? localsub(timep, 0L, tmp, sp) : NULL; 01151 }
time_t ast_mktime | ( | struct tm *const | tmp, | |
const char * | zone | |||
) |
Definition at line 1644 of file localtime.c.
References ast_tzset(), localsub(), and time1().
Referenced by acf_strptime(), sms_readfile(), and unpackdate().
01645 { 01646 const struct state *sp; 01647 if (!(sp = ast_tzset(zone))) 01648 return 0; 01649 return time1(tmp, localsub, 0L, sp); 01650 }