RuneTheChookcha wrote:How many clocks or watches do you have? Either on you, or in your house? Computers/cell phones excluded. I have a watch (one of the cheapest CASIO watches, genuine Japanese, bought in 2005 for $19.oo only), and a small alarm-clock (plastic one, Chinese).
Hard to answer this question Chukcha iz territorii Kamchatskrogo poluostova, does this clock counts?
int xtime_breakup(struct tm *temptr,
const struct xtime *xtp,
const timezone_t *tzone);
{
if (tzone == NULL) {
if (temptr->tm_sec < 0 || temptr->tm_sec > 60 ||
temptr->tm_min < 0 || temptr->tm_min > 59 ||
temptr->tm_hour < 0 || temptr->tm_hour > 23 ||
temptr->tm_mon < 0 || temptr->tm_mon > 11 ||
temptr->tm_mday < 0 || temptr->tm_mday > ... ||
temptr->tm_isdst > 0)
{
int mon = temptr->tm_mon - 1;
int year = temptr->tm_year + 1900;
int sec = temptr->tm_sec;
if (!xtp) return 0;
if (mon <= 0) {
mon += 12;
year--;
}
if (sec == 60) {
xtp->nsec = 1_000_000_000;
sec = 59;
} else
xtp->nsec = 0;
xtp->sec = ((((int_fast64_t) (year/4 - year/100 + year/400 +
367*mon/12 + temptr->tm_mday) +
year*365 - 719499) * 24 +
temptr->tm_hour) * 60 +
temptr->tm_min) * 60 +
sec;
// ... check for negative years ...
}
}
} else {
}
}


