sys/src/syscvrtim.c File Reference

#include <linux/time.h>
#include <linux/string.h>
#include <sys_routines.h>
#include <ssdef.h>
#include <descrip.h>
#include <lib_routines.h>
#include <exe_routines.h>

Go to the source code of this file.

Classes

struct  TIME

Defines

#define TIMEBASE   100000
#define TIMESIZE   8640000
#define QUAD_CENTURY_DAYS   146097
#define CENTURY_DAYS   36524
#define QUAD_YEAR_DAYS   1461
#define YEAR_DAYS   365
#define OFFSET_DAYS   94187
#define BASE_YEAR   1601

Functions

unsigned long sys___combine_date_time (int days, struct TIME *timadr, int day_time)
unsigned long lib_day (long *days, const void *timadra, int *day_time)
unsigned long lib_cvt_vectim (const void *timbufa, void *timadra)
int exe_asctim (unsigned short *timlen, struct dsc_descriptor *timbuf, const void *timadra, unsigned long cvtflg)
int exe_bintim (struct dsc $descriptor *timbuf, struct TIME *timadra)
int exe_numtim (unsigned short timbuf[7], struct TIME *timadra)

Variables

const char month_names [] = "-JAN-FEB-MAR-APR-MAY-JUN-JUL-AUG-SEP-OCT-NOV-DEC-"


Define Documentation

#define BASE_YEAR   1601

Definition at line 67 of file syscvrtim.c.

Referenced by exe_numtim(), and lib_cvt_vectim().

#define CENTURY_DAYS   36524

Definition at line 57 of file syscvrtim.c.

Referenced by exe_numtim().

#define OFFSET_DAYS   94187

Definition at line 63 of file syscvrtim.c.

Referenced by exe_numtim(), and lib_cvt_vectim().

#define QUAD_CENTURY_DAYS   146097

Definition at line 55 of file syscvrtim.c.

Referenced by exe_numtim().

#define QUAD_YEAR_DAYS   1461

Definition at line 59 of file syscvrtim.c.

Referenced by exe_numtim().

#define TIMEBASE   100000

Definition at line 52 of file syscvrtim.c.

Referenced by lib_day(), and sys___combine_date_time().

#define TIMESIZE   8640000

Definition at line 53 of file syscvrtim.c.

Referenced by lib_day(), and sys___combine_date_time().

#define YEAR_DAYS   365

Definition at line 61 of file syscvrtim.c.

Referenced by exe_numtim().


Function Documentation

int exe_asctim ( unsigned short *  timlen,
struct dsc_descriptor *  timbuf,
const void *  timadra,
unsigned long  cvtflg 
)

Definition at line 286 of file syscvrtim.c.

References exe_numtim(), month_names, and SS__NORMAL.

Referenced by exe_faol().

int exe_bintim ( struct dsc $descriptor *  timbuf,
struct TIME timadra 
)

Definition at line 408 of file syscvrtim.c.

References exe_numtim(), lib_cvt_vectim, month_names, and SS__IVTIME.

int exe_numtim ( unsigned short  timbuf[7],
struct TIME timadra 
)

unsigned long lib_cvt_vectim ( const void *  timbufa,
void *  timadra 
)

unsigned long lib_day ( long *  days,
const void *  timadra,
int *  day_time 
)

Definition at line 132 of file syscvrtim.c.

References exe_gettim(), SS__NORMAL, TIME::time, TIMEBASE, and TIMESIZE.

unsigned long sys___combine_date_time ( int  days,
struct TIME timadr,
int  day_time 
)

Definition at line 83 of file syscvrtim.c.

References SS__IVTIME, SS__NORMAL, TIME::time, TIMEBASE, and TIMESIZE.

Referenced by lib_cvt_vectim().


Variable Documentation

const char month_names[] = "-JAN-FEB-MAR-APR-MAY-JUN-JUL-AUG-SEP-OCT-NOV-DEC-"

Definition at line 78 of file syscvrtim.c.

Referenced by exe_asctim(), and exe_bintim().


Generated on Fri Oct 9 10:26:02 2009 for FreeVMS by  doxygen 1.5.5