TZ-Lib  $VERSION$
date.c File Reference
#include "private.h"
#include "locale.h"

Macros

#define INCR   1024
 
#define SECSPERMIN   60
 
#define TM_YEAR_BASE   1900
 

Functions

static void display (const char *, time_t)
 
static void dogmt (void)
 
static void errensure (void)
 
int main (const int argc, char *argv[])
 
static void timeout (FILE *, const char *, const struct tm *)
 
static void usage (void)
 

Variables

char ** environ
 
static int retval = EXIT_SUCCESS
 

Macro Definition Documentation

#define INCR   1024

Referenced by timeout().

#define SECSPERMIN   60
#define TM_YEAR_BASE   1900

Referenced by _fmt(), time2sub(), and timesub().

Function Documentation

static void display ( const char *  format,
time_t  now 
)
static

References _, errensure(), localtime(), timeout(), and tm.

Referenced by main().

static void dogmt ( void  )
static

References _, environ, errensure(), and retval.

Referenced by main().

static void errensure ( void  )
static

References EXIT_FAILURE, EXIT_SUCCESS, and retval.

Referenced by display(), dogmt(), main(), timeout(), and usage().

int main ( const int  argc,
char *  argv[] 
)
static void timeout ( FILE *  fp,
const char *  format,
const struct tm tmp 
)
static

References _, errensure(), INCR, retval, strftime(), and tm.

Referenced by display().

static void usage ( void  )
static

References _, errensure(), and retval.

Referenced by main().

Variable Documentation

char** environ

Referenced by dogmt().

int retval = EXIT_SUCCESS
static

Referenced by dogmt(), errensure(), main(), timeout(), and usage().