pidgin/purple-plugin-pack

merge of 'd96630e7b4cab3a8e44326d936d5c008d332ff0c'
org.guifications.plugins
2008-09-21, rlaager
2f842b91d09d
merge of 'd96630e7b4cab3a8e44326d936d5c008d332ff0c'
and 'ff6b591687253495e1968fb2a3a49700f473b5ab'
/*************************************************************************
* Timezone test module
* by Martijn van Oosterhout <kleptog@svana.org> (C) April 2006
* Licenced under the GNU General Public Licence version 2.
*
* Code to test the timezone module.
*************************************************************************/
//#include "private.h"
//#include "tzfile.h"
#include "localtime.h"
int
main()
{
struct state *state;
time_t now = time(NULL);
struct tm tm;
state = timezone_load("Australia/Sydney");
if(!state)
return 0;
localsub(&now, 0, &tm, state);
gmtsub(&now, 0, &tm);
return 0;
}