TZ-Lib  $VERSION$
strftime.c File Reference
#include "private.h"
#include "tzfile.h"
#include "fcntl.h"
#include "locale.h"

Classes

struct  lc_time_T
 

Macros

#define DIVISOR   100
 
#define IN_ALL   3
 
#define IN_NONE   0
 
#define IN_SOME   1
 
#define IN_THIS   2
 
#define Locale   (&C_time_locale)
 
#define YEAR_2000_NAME   "CHECK_STRFTIME_FORMATS_FOR_TWO_DIGIT_YEARS"
 

Functions

static char * _add (const char *, char *, const char *)
 
static char * _conv (int, const char *, char *, const char *)
 
static char * _fmt (const char *, const struct tm *, char *, const char *, int *)
 
static char * _yconv (int, int, bool, bool, char *, char const *)
 
size_t strftime (char *s, size_t maxsize, const char *format, const struct tm *t)
 

Variables

static const struct lc_time_T C_time_locale
 

Macro Definition Documentation

#define DIVISOR   100

Referenced by _yconv().

#define IN_ALL   3

Referenced by _fmt().

#define IN_NONE   0

Referenced by strftime().

#define IN_SOME   1

Referenced by _fmt(), and strftime().

#define IN_THIS   2

Referenced by _fmt(), and strftime().

#define Locale   (&C_time_locale)

Referenced by _fmt().

#define YEAR_2000_NAME   "CHECK_STRFTIME_FORMATS_FOR_TWO_DIGIT_YEARS"

Referenced by strftime().

Function Documentation

static char * _add ( const char *  str,
char *  pt,
const char *  ptlim 
)
static

Referenced by _conv(), _fmt(), and _yconv().

static char * _conv ( int  n,
const char *  format,
char *  pt,
const char *  ptlim 
)
static

References _add(), and INT_STRLEN_MAXIMUM.

Referenced by _fmt(), and _yconv().

static char * _fmt ( const char *  format,
const struct tm t,
char *  pt,
const char *  ptlim,
int *  warnp 
)
static
static char * _yconv ( int  a,
int  b,
bool  convert_top,
bool  convert_yy,
char *  pt,
char const *  ptlim 
)
static

References _add(), _conv(), and DIVISOR.

Referenced by _fmt().

size_t strftime ( char *  s,
size_t  maxsize,
const char *  format,
const struct tm t 
)

Variable Documentation

const struct lc_time_T C_time_locale
static