26 #define DefaultTimeZone -3L 30 static const char Days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
47 x = 24L * 60L * 60L * 3652L +
timezone;
50 x += (i >> 2) * (1461L * 24L * 60L * 60L);
51 x += (i & 3) * (24L * 60L * 60L * 365L);
91 d->
da_year = 1980 + (int)((
time / (1461L * 24L)) << 2);
101 if (daylight && __isDST( (
int)(
time % 24), (
int)(
time / 24), 0, d->
da_year-1970 ))
long dostounix(struct date *d, struct time *t)
Microchip PIC C Generic, General defines.
unsigned char ti_hour
Hours.
void unixtodos(long time, struct date *d, struct time *t)
static const char Days[12]
unsigned char ti_min
Minutes.
char da_day
Day of the month.
unsigned char ti_hund
Hundredths of seconds.
char da_mon
Month (1 = Jan)
unsigned char ti_sec
Seconds.