/* Deprecated. Do not use. */ void date_time_decode(struct date_time *dt, uint32_t *year, uint8_t *month, uint8_t *day, uint8_t *hour, uint8_t *minute, uint8_t *second, float32_t *second_fraction) { date_decode(dt->julian_day_number, year, month, day); time_decode(dt->julian_day_fraction, hour, minute, second, second_fraction); }
/* Deprecated. Do not use. */ void tm_decode(struct date_time *dt, struct tm *tm) { uint32_t year; uint8_t month, day, hour, minute, second; date_decode(dt->julian_day_number, &year, &month, &day); time_decode(dt->julian_day_fraction, &hour, &minute, &second, NULL); tm->tm_year = year - 1900; tm->tm_mon = month - 1; tm->tm_mday = day; tm->tm_hour = hour; tm->tm_min = minute; tm->tm_sec = second; }
// Lчтыхў№ ёюёЄрты ¦•шх шч яюыэющ фрЄv/тЁхьхэш Date int dt_decode(date_time DT, int *Year, int *Month, int *Day, int *Hour, int *Min, int *Sec) { date_decode(DT,Year,Month,Day); time_decode(DT,Hour,Min,Sec); return *Year>0 && *Month>0 && *Day>0; }