abyss_date.c File Reference

#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <inttypes.h>
#include "abyss_date.h"

Include dependency graph for abyss_date.c:

Go to the source code of this file.

Functions

int32_t DateCompare (TDate *d1, TDate *d2)
abyss_bool DateDecode (const char *const dateString, TDate *const tmP)
abyss_bool DateFromGMT (TDate *d, time_t t)
abyss_bool DateFromLocal (TDate *d, time_t t)
abyss_bool DateInit (void)
abyss_bool DateToLogString (TDate *const tmP, char *const s)
abyss_bool DateToString (TDate *tm, char *s)

Variables

static char * _DateDay [7]
static char * _DateMonth [12]
static int32_t _DateTimeBias = 0
static char _DateTimeBiasStr [6] = ""


Function Documentation

int32_t DateCompare ( TDate d1,
TDate d2 
)

Definition at line 169 of file abyss_date.c.

Referenced by fileDate(), ServerDirectoryHandler(), and ServerFileHandler().

abyss_bool DateDecode ( const char *const   dateString,
TDate *const   tmP 
)

Definition at line 101 of file abyss_date.c.

References _DateMonth, FALSE, and s.

abyss_bool DateFromGMT ( TDate d,
time_t  t 
)

Definition at line 186 of file abyss_date.c.

References FALSE, and TRUE.

Referenced by DateFromLocal(), and DateInit().

abyss_bool DateFromLocal ( TDate d,
time_t  t 
)

Definition at line 198 of file abyss_date.c.

References _DateTimeBias, and DateFromGMT().

Referenced by DateToLogString(), and fileDate().

abyss_bool DateInit ( void   ) 

abyss_bool DateToLogString ( TDate *const   tmP,
char *const   s 
)

Definition at line 77 of file abyss_date.c.

References _DateMonth, _DateTimeBiasStr, DateFromLocal(), FALSE, and TRUE.

Referenced by SessionLog().

abyss_bool DateToString ( TDate tm,
char *  s 
)

Definition at line 60 of file abyss_date.c.

References _DateDay, _DateMonth, FALSE, and TRUE.

Referenced by addDateHeader(), ServerDirectoryHandler(), and ServerFileHandler().


Variable Documentation

char* _DateDay[7] [static]

Initial value:

{
    "Sun","Mon","Tue","Wed","Thu","Fri","Sat"
}

Definition at line 47 of file abyss_date.c.

Referenced by DateToString().

char* _DateMonth[12] [static]

Initial value:

{
    "Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
}

Definition at line 52 of file abyss_date.c.

Referenced by DateDecode(), DateToLogString(), and DateToString().

int32_t _DateTimeBias = 0 [static]

Definition at line 57 of file abyss_date.c.

Referenced by DateFromLocal(), and DateInit().

char _DateTimeBiasStr[6] = "" [static]

Definition at line 58 of file abyss_date.c.

Referenced by DateInit(), and DateToLogString().


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6