mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
CLeanup PBX patch and add localtime stuff for saytime (bug #168)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
22
include/asterisk/localtime.h
Executable file
22
include/asterisk/localtime.h
Executable file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Asterisk -- A telephony toolkit for Linux.
|
||||
*
|
||||
* Custom localtime functions for multiple timezones
|
||||
*
|
||||
* Copyright (C) 2003, Mark Spencer
|
||||
*
|
||||
* Tilghman Lesher <tlesher@vcch.com>
|
||||
*
|
||||
* This program is free software, distributed under the terms of
|
||||
* the GNU General Public License
|
||||
*/
|
||||
|
||||
#ifndef _ASTERISK_LOCALTIME_H
|
||||
#define _ASTERISK_LOCALTIME_H
|
||||
|
||||
extern int ast_tzsetwall(void);
|
||||
extern void ast_tzset(const char *name);
|
||||
extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
|
||||
extern time_t ast_mktime(struct tm * const tmp, const char *zone);
|
||||
|
||||
#endif
|
@@ -523,6 +523,8 @@ extern void pbx_builtin_setvar_helper(struct ast_channel *chan, char *name, char
|
||||
extern void pbx_builtin_clear_globals(void);
|
||||
extern void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count);
|
||||
|
||||
int ast_extension_patmatch(const char *pattern, const char *data);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
@@ -69,6 +69,8 @@ int ast_say_date(struct ast_channel *chan, time_t t, char *ints, char *lang);
|
||||
|
||||
int ast_say_datetime_from_now(struct ast_channel *chan, time_t t, char *ints, char *lang);
|
||||
|
||||
int ast_say_date_with_format(struct ast_channel *chan, time_t t, char *ints, char *lang, char *format, char *timezone);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user