Asterisk.org: Developer Documentation (28 Oct 2009)

Wed Oct 28 15:47:54 2009

## Asterisk developer's documentation

# localtime.h

Go to the documentation of this file.

    00001 /*
    00002  * Asterisk -- An open source telephony toolkit.
    00003  *
    00004  * Copyright (C) 1999 - 2005, Digium, Inc.
    00005  *
    00006  * Mark Spencer <markster@digium.com>
    00007  * Tilghman Lesher <tlesher@vcch.com>
    00008  *
    00009  * See http://www.asterisk.org for more information about
    00010  * the Asterisk project. Please do not directly contact
    00011  * any of the maintainers of this project for assistance;
    00012  * the project provides a web site, mailing lists and IRC
    00013  * channels for your use.
    00014  *
    00015  * This program is free software, distributed under the terms of
    00016  * the GNU General Public License Version 2. See the LICENSE file
    00017  * at the top of the source tree.
    00018  */
    00019
    00020 /*! \file
    00021  * \brief Custom localtime functions for multiple timezones
    00022  */
    00023
    00024 #ifndef _ASTERISK_LOCALTIME_H
    00025 #define _ASTERISK_LOCALTIME_H
    00026
    00027 extern int ast_tzsetwall(void);
    00028 extern void ast_tzset(const char *name);
    00029 extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
    00030 extern time_t ast_mktime(struct tm * const tmp, const char *zone);
    00031 extern char *ast_ctime(const time_t * const timep);
    00032 extern char *ast_ctime_r(const time_t * const timep, char *buf);
    00033
    00034 #endif /* _ASTERISK_LOCALTIME_H */