Fri Sep 29 11:14:24 2006

Asterisk developer's documentation


localtime.h File Reference

Custom localtime functions for multiple timezones. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * ast_ctime (const time_t *const timep)
char * ast_ctime_r (const time_t *const timep, char *buf)
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)
void ast_tzset (const char *name)
int ast_tzsetwall (void)


Detailed Description

Custom localtime functions for multiple timezones.

Definition in file localtime.h.


Function Documentation

char* ast_ctime ( const time_t *const   timep  ) 

char* ast_ctime_r ( const time_t *const   timep,
char *  buf 
)

struct tm* ast_localtime ( const time_t *  timep,
struct tm *  p_tm,
const char *  zone 
)

Referenced by acf_strftime(), ast_say_date_da(), ast_say_date_de(), ast_say_date_en(), ast_say_date_fr(), ast_say_date_gr(), 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_pt(), ast_say_date_with_format_tw(), iax2_datetime(), main(), sendmail(), sendpage(), and write_metadata().

time_t ast_mktime ( struct tm *const   tmp,
const char *  zone 
)

Definition at line 1490 of file localtime.c.

References ast_mutex_lock(), ast_mutex_unlock(), ast_tzset(), localsub(), and time1().

01493 {
01494    time_t mktime_return_value;
01495 #ifdef   _THREAD_SAFE
01496    ast_mutex_lock(&lcl_mutex);
01497 #endif
01498    ast_tzset(zone);
01499    mktime_return_value = time1(tmp, localsub, 0L, zone);
01500 #ifdef   _THREAD_SAFE
01501    ast_mutex_unlock(&lcl_mutex);
01502 #endif
01503    return(mktime_return_value);
01504 }

void ast_tzset ( const char *  name  ) 

Referenced by ast_localtime(), and ast_mktime().

int ast_tzsetwall ( void   ) 

Referenced by localsub(), and P().


Generated on Fri Sep 29 11:14:24 2006 for Asterisk - the Open Source PBX by  doxygen 1.4.7