time.h File Reference

#include "routix/system.h"

Go to the source code of this file.

Classes

Defines

Typedefs

Functions


Define Documentation

#define ANIO_INICIO   70
 

Definition at line 38 of file time.h.

Referenced by localtime(), and mktime().

#define bcdtochar valor   )     (valor - 6 * (byte) (valor/16))
 

Definition at line 21 of file time.h.

#define chartobcd valor   )     (valor % 10 + ( ( (byte) valor / 10 ) << 4 ))
 

Definition at line 22 of file time.h.

#define CMOS_C   0x70
 

Definition at line 7 of file time.h.

Referenced by get_value(), and set_value().

#define CMOS_V   0x71
 

Definition at line 8 of file time.h.

Referenced by get_value(), and set_value().

#define CUR_DAYOFMONTH   7
 

Definition at line 15 of file time.h.

#define CUR_DAYOFWEEK   6
 

Definition at line 14 of file time.h.

#define CUR_HOUR   4
 

Definition at line 13 of file time.h.

#define CUR_MIN   2
 

Definition at line 12 of file time.h.

#define CUR_MONTH   8
 

Definition at line 16 of file time.h.

#define CUR_SEC   0
 

Definition at line 11 of file time.h.

#define CUR_YEAR   9
 

Definition at line 17 of file time.h.

#define DIA_INICIO   1
 

Definition at line 40 of file time.h.

 
#define get_dayofmonth  )     bcdtochar(get_value(CUR_DAYOFMONTH))
 

Definition at line 28 of file time.h.

Referenced by init_time().

 
#define get_dayofweek  )     bcdtochar(get_value(CUR_DAYOFWEEK))
 

Definition at line 27 of file time.h.

Referenced by init_time().

 
#define get_hour  )     bcdtochar(get_value(CUR_HOUR))
 

Definition at line 24 of file time.h.

Referenced by init_time().

 
#define get_min  )     bcdtochar(get_value(CUR_MIN))
 

Definition at line 25 of file time.h.

Referenced by init_time().

 
#define get_month  )     bcdtochar(get_value(CUR_MONTH))
 

Definition at line 29 of file time.h.

Referenced by init_time().

 
#define get_sec  )     bcdtochar(get_value(CUR_SEC))
 

Definition at line 26 of file time.h.

Referenced by init_time().

 
#define get_stat_reg_a  )     get_value(STAT_REG_A)
 

Definition at line 31 of file time.h.

 
#define get_stat_reg_b  )     get_value(STAT_REG_B)
 

Definition at line 32 of file time.h.

 
#define get_year  )     bcdtochar(get_value(CUR_YEAR))
 

Definition at line 30 of file time.h.

Referenced by init_time().

#define MES_INICIO   0
 

Definition at line 39 of file time.h.

Referenced by localtime(), and mktime().

#define SEC_PER_DAY   (24 * SEC_PER_HOUR)
 

Definition at line 44 of file time.h.

Referenced by localtime(), and mktime().

#define SEC_PER_HOUR   (60 * SEC_PER_MIN)
 

Definition at line 43 of file time.h.

Referenced by localtime(), and mktime().

#define SEC_PER_MIN   (60)
 

Definition at line 42 of file time.h.

Referenced by localtime(), and mktime().

#define SEC_PER_MONTH anio,
mes   )     ( dias_por_mes[mes] + ( ( (mes == FEBRERO) && es_bisiesto(1900+anio) ) ? 1 : 0 ) ) * SEC_PER_DAY
 

Definition at line 46 of file time.h.

Referenced by localtime(), and mktime().

#define SEC_PER_YEAR anio   )     ( ( 365 + es_bisiesto(anio) ) * SEC_PER_DAY )
 

Definition at line 45 of file time.h.

Referenced by localtime(), and mktime().

#define set_hour valor   )     set_value(CUR_HOUR, chartobcd(valor))
 

Definition at line 34 of file time.h.

#define STAT_REG_A   0xa
 

Definition at line 18 of file time.h.

#define STAT_REG_B   0xb
 

Definition at line 19 of file time.h.


Typedef Documentation

typedef int time_t
 

Definition at line 63 of file time.h.

Referenced by local(), localtime(), and mktime().


Function Documentation

void actualizar_reloj  )  [inline]
 

Definition at line 57 of file time.c.

char* asctime const struct tm tm  ) 
 

Definition at line 194 of file time.c.

Referenced by time_debug().

int day_of_year int  anio,
int  mes,
int  dia
 

Definition at line 106 of file time.c.

Referenced by init_time().

int es_bisiesto int  year  ) 
 

Definition at line 183 of file time.c.

Referenced by bisiestos(), and day_of_year().

struct tm* localtime const time_t clock  ) 
 

Definition at line 63 of file time.c.

Referenced by dump_tm(), local(), and time_debug().

time_t mktime struct tm tm  ) 
 

Definition at line 161 of file time.c.

Referenced by init_time(), local(), and time_debug().


Generated on Sun May 30 18:38:37 2004 for Routix OS by doxygen 1.3.6