add missing ~ to ast_parse_allow_deny that was breaking disallow
[asterisk/asterisk.git] / stdtime / test.c
1 /* Testing localtime functionality */
2
3 #include "localtime.c"
4 #include <sys/time.h>
5 #include <stdio.h>
6
7 int main(int argc, char **argv) {
8         struct timeval tv;
9         struct tm       tm;
10         char    *zone[4] = { "America/New_York", "America/Chicago", "America/Denver", "America/Los_Angeles" };
11         int     i;
12
13         gettimeofday(&tv,NULL);
14
15         for (i=0;i<4;i++) {
16                 ast_localtime(&tv.tv_sec,&tm,zone[i]);
17                 printf("Localtime at %s is %04d/%02d/%02d %02d:%02d:%02d\n",zone[i],tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
18         }
19         return 0;
20 }